aluck-tiffany / blog-react-route-dom6 Goto Github PK
View Code? Open in Web Editor NEWroute-dom6:In it, "Switch" is replaced by routes "Routes". You need to update the import from Switch to Routes. We should also update the Route declaration 2 <Route path='/' element={<Copmonent/>} /> also don't need to use exact in Route declaration