TanStackT
TanStack14mo ago
8 replies
spontaneous-moccasin

How to reuse a child routes

#react-router
I have a route like this:
-
company.$id.members
// will show members of $id company
-
members
// will show all members

The members route will render the same component
<Members />
, it just uses different parameters to fetch.

This is just a small sample, there are many similar route reuse cases for me.
Was this page helpful?