react-data-menu icon indicating copy to clipboard operation
react-data-menu copied to clipboard

Having trouble getting started

Open drtimcooper opened this issue 2 years ago • 1 comments

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.

drtimcooper avatar Aug 01 '22 04:08 drtimcooper

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.

dkozar avatar Aug 01 '22 05:08 dkozar