fortunar / react-sidemenu

React sidemenu component
57 stars 14 forks source link

Component is not working #14

Closed abhisheksett closed 6 years ago

abhisheksett commented 6 years ago

I'm always getting following error while trying to use the component:

Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Even if I copy paste the example code, getting same issue

abhisheksett commented 6 years ago

Sorry, my bad. It's working if I do a named import of SideMenu. Closing the issue.