alsoscotland / react-super-select

MIT License
95 stars 33 forks source link

unable to run example in react cli #131

Closed skkohli closed 6 years ago

skkohli commented 6 years ago

I might be doing something wrong here. I used npm install in the project created by react cli. When i include the library import {ReactSuperSelect} from 'react-super-select/lib/react-super-select'; i errors that Element type is invalid: I also dont see any examples in the github repo to run it

alsoscotland commented 6 years ago

@skkohli I think it is likely just a problem with your import statement.

import ReactSuperSelect from 'react-super-select';

rather than import { ReactSuperSelect }

ReactSuperSelect is the only export of the package. Please let me know if that solves your issue

skkohli commented 6 years ago

Yes, That was a mistake. Thanks for the amazing component @alsoscotland

alsoscotland commented 6 years ago

@skkohli no worries. Glad it is working!