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
But I got some errors when compiling it: Attempted import error: 'Switch' is not exported from 'react-router-dom'
After investigating a little bit, I found that since v6 of react-router-dom, Switch is replaced by Routes, making this change on my project solved the issue:
In the video, you utilized:
But I got some errors when compiling it: Attempted import error: 'Switch' is not exported from 'react-router-dom'
After investigating a little bit, I found that since v6 of react-router-dom, Switch is replaced by Routes, making this change on my project solved the issue:
I think it would be nice if you pinned a comment on the video or to update it.
Thanks for the tutorial.
The text was updated successfully, but these errors were encountered: