react_devtools_backend.js:2450 You rendered descendant <Routes> (or called `useRoutes()`) at "/home" (under <Route path="/home">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
由于6.0版本后的更新: 子路由上的父路由必须加/* ,否则不会导航更深,父路由将不再匹配,因此子路由将永远不会渲染。
解决方案:
<Route path="/home" element={<Home/>}></Route>
改为
<Route path="/home/*" element={<Home/>}></Route>