Hi, I am Gael.
I’m learning ReactJs, with this tutorial.
Create React App does not ship with a way to set up routes in your app. To do so, we are going to use React Router. The latest version of React Router, React Router v4 embraces the composable nature of React’s components and makes it easy to work...
I have an error element type, but i don’t find it.
"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.
Check the render method of App
."
My app.js
Can you help me please ?
Can you also show your Routes?
Hello, thanks for your time.
My Routes.js
Can you try to do this in your routes?
{ /* Finally, catch all unmatched routes */ }
Use the component prop instead. See if that gives a difference.
Sorry I don’t understand what you ask,
can you explain please?
What routes Ido try ? and I try this in my navBar ?
Do you have un exemple for use the component prop instead ? its on my app.js or on my index .js?
I show my index.js maybe my error is here.
jayair
April 13, 2020, 8:16pm
6
Can I see the full error you are getting? Including the stack trace?
Hello jayair, this is my error
What is stack trace ?
Hello stcalica, thank you for this link , I’m looking.
jayair
April 25, 2020, 4:47pm
9
Can you try running the app from the sample repo instead?
And compare it to your code and see what is different?