Back to posts
File-based routing
/posts/1 — src/routes/posts/$postId.tsx
Each file in src/routes/ becomes a route. The file path maps to the URL path. index.tsx files match the parent path exactly. This is the foundation of TanStack Router in Start.
Dynamic route: The
postId param was captured from the URL as "1" via Route.useParams().