Is there a way to nest a route using react-router v6 this way?
<Parent>
<Routes>
<Route path="/items/:itemId" element={<ItemPage />} />
</Routes>
</Parent>
<ItemPage>
<Routes>
<Route path="info" element={<ItemInfo />} />
<Route path="settings" element={<ItemSettings />} />
</Routes>
<Sidebar />
</ItemPage>
So I could visit /items/123/settings? I am looking for indeed this way to work with router, so on separate ItemPage component layout would depend on child-route, keeping Sidebar on the side, but changing content according to info/settings "tab" selected.
Everywhere else in my app this way works, but for some reason it doesn't work with nested routes under :id.
This doc does show an example for kinda nested route, but it's not a nested one.