Skip to content

Having trouble getting started #12

@drtimcooper

Description

@drtimcooper

Hi dkozar: I'm trying to use your React library. I'm a React noob unfortunately. But I can't get started.

I did "npm install react-data-menu" and I've pasted your demo code into my environment.

  1. I get a compile error about a semicolon: ...'-', {
    type: 'link',
    title: 'Give me the stars!',
    url: 'https://github.com/dkozar/react-data-menu/stargazers',
    target: '_blank'
    }]; << probably shouldn't be here.

  2. Then I get: Attempted import error: './TutorialApp' does not contain a default export (imported as 'TutorialApp'). (I renamed it to 'TutorialApp'). So I added: export default TutorialApp to the end.

  3. Then I got a compile error about "LinkRenderer". I couldn't figure out what else I was supposed to install (actually preferably I wouldn't install anything else) so I commented out the 2 mentions.

  4. I've only learnt how to use React function components, not React class components, so everything is unfamiliar to me.

  5. Then my older "Menu" component stopped working. Well, I wouldn't need it if I could get your library to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions