You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've scoured the internet to find good examples but there seem to be very few. I'm tying to utilize this datepicker (as an arrow function as listed on your page) and I keep getting an error message as seen below:
Uncaught Error: 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.
When this wouldn't work, I found an example online to test with. It works but uses regular function syntax instead of arrow function syntax. I'm hoping that someone here might have some sample code that shows how to both write the arrow function component and then code that shows how it should properly be imported into another arrow function component. I'm fairly new to React but have created and placed other components without too much trouble so I'm not sure why this one is giving me such grief. I think seeing working sample code will provide me with the proper tools to visually see what I'm doing wrong.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've scoured the internet to find good examples but there seem to be very few. I'm tying to utilize this datepicker (as an arrow function as listed on your page) and I keep getting an error message as seen below:
Uncaught Error: 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.
When this wouldn't work, I found an example online to test with. It works but uses regular function syntax instead of arrow function syntax. I'm hoping that someone here might have some sample code that shows how to both write the arrow function component and then code that shows how it should properly be imported into another arrow function component. I'm fairly new to React but have created and placed other components without too much trouble so I'm not sure why this one is giving me such grief. I think seeing working sample code will provide me with the proper tools to visually see what I'm doing wrong.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions