Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. Check the render method of `App`.
I am getting this error can anyone please help me.
Error:
My code:
2 Answers
3 years ago by Shruti Pachangane
@Shruti Pachangane, can you give the code from App.js file? make sure the file's last like looks like following
export default App;
Update:
@Shruti Pachangane
code in App.js
file looks good, it exported the App properly, It is using more .js
files like Header
, Sidebar
etc so you need to check them as well and make sure all of them exported properly
3 years ago by Eleven
@Elevan
Thankyou so much Sir for taking your time out and helping me :-)
3 years ago by Shruti Pachangane