Skip to main content

React Router (declarative)

Routes live in JSX <Route> elements or a route object passed to createBrowserRouter. Find the router setup — usually src/App.tsx, src/main.tsx, or src/routes.tsx:
Collect every path + element pair. Nested <Route> paths join parent segments. :param segments are dynamic — substitute a sample value.

React Router v7 / Remix (framework mode, app/routes/)

File-based: app/routes/_index.tsx → /, app/routes/billing.tsx → /billing, app/routes/blog.$slug.tsx → /blog/:slug, dot separators are path segments. root.tsx is the shared layout — include it in every route’s components/styles. Title: export const meta in Remix/v7, or the component name / file name. Styles: app/tailwind.css, app/globals.css, tailwind.config.*, plus root.tsx imports.

TanStack Router

Read the actual route tree, including src/routeTree.gen.ts when the repository uses generated file routes. Route IDs are not always URLs: (group) directories and pathless layouts such as _authenticated do not contribute URL segments. An index.tsx file maps to its parent path. Include the layouts that actually wrap each route; authenticated chrome does not belong on standalone sign-in screens. Resolve $parameter routes from committed fixtures or an explicit source enum. If there is no supported concrete value, report the route as unresolved. Read imported form handlers as well as <Link> elements. Include verified internal destinations in each route’s navigation array:
For navigate({ to: targetPath }) with targetPath = redirectTo || '/', the literal / fallback is source evidence; an unknown runtime redirectTo value is not. Record the verified fallback and omit destinations you cannot establish. Check that all referenced screens exist or remain in the pending route list.