TanStackT
TanStack14mo ago
3 replies
foolish-indigo

Best approach to render a page based on param?

I have driveId as a param, but technically they are too different pages.

My current approach would be to have a route.tsx for $driveId folder, and then determine which component (page) to load based on that, but I'm wondering if there is a better approach?
Was this page helpful?