Hi Michael, thanks for share, I'm doing an idea and your tutorial helped me a lot.
But implementing I had one problem, I don't know if it was because of the version of react or react-dom, to fix, I needed to change one piece of the code in file main.jsx
For some reason, when I use constants instead of functions in my setup (react and react-dom: 16.8.6) , react throw this error:
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
Check the render method of `Main`.
If someone else get the same error/problem, the solution above may will work =]
Hi Michael, thanks for share, I'm doing an idea and your tutorial helped me a lot.
But implementing I had one problem, I don't know if it was because of the version of react or react-dom, to fix, I needed to change one piece of the code in file main.jsx
From:
For:
For some reason, when I use constants instead of functions in my setup (react and react-dom: 16.8.6) , react throw this error:
If someone else get the same error/problem, the solution above may will work =]
Cheers o/
You're right, never trust the internet!
Thanks for the kind words!
Edit: Added the functions so it works now