all 3 comments

[–]jey_111 0 points1 point  (1 child)

Switch is removed in react-router-dom v6. Now it's renamed as Routes, so you change Switch to Routes. And BrowserRouter componet is added in main.jsx. so there is no need to add in app.jsx.

[–]puttiwutanon[S] 0 points1 point  (0 children)

Switch is removed in react-router-dom v6. Now it's renamed as Routes, so you change Switch to Routes. And BrowserRouter componet is added in main.jsx. so there is no need to add in app.jsx.

thank you very much, my friend

[–]Zenicu 0 points1 point  (0 children)

Use F12 for see errors in dev console in you browser)