I am trying the examples (copy/paste) before using the comp in my project but I always get an error :
Warning: React.createElement: 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.
I import it:
I am trying the examples (copy/paste) before using the comp in my project but I always get an error :
Warning: React.createElement: 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.
I import it:import Autocomplete from 'react-autocomplete';
then in render I return:
Any idea?