react-data-menu
react-data-menu copied to clipboard
Having trouble getting started
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.
-
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.
-
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.
-
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.
-
I've only learnt how to use React function components, not React class components, so everything is unfamiliar to me.
-
Then my older "Menu" component stopped working. Well, I wouldn't need it if I could get your library to work.
Unfortunatelly, this library is not in active development anymore. I'm not updating it to the newer versions of React.
It could serve as a guideline or learning resource.