- 博客(1)
- 收藏
- 关注
原创 react路由问题
rror: A <Route> is only ever to be used as the child of <Routes> element, never rendereddirectly.Please wrap your <Route> in a <Routes>. 原因: React路由版本问题,你可以查看自己的package.json文件,查看react-router-dom的版本,应该是 6 版本。 在React-Router v6版本.
2021-11-30 15:15:30
622
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅