TanStackT
TanStack3y ago
15 replies
wet-aqua

how to do route groups?

Is there a way to do route groups for the same "/" path, like in next.js? (https://nextjs.org/docs/app/building-your-application/routing/route-groups)

So we would have

/ (home page uses <Root /> component as a layout
/sign-in (sign in page uses <AuthRoot /> component as a layout instead of Root and also uses <Outlet />
Route Groups can be used to partition your Next.js application into different sections.
Routing: Route Groups
Was this page helpful?