> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# React Router, Remix, and TanStack Router

> Enumerate React routes and source navigation for UFL ingestion.

## 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`:

```tsx theme={null}
<Route path="/billing" element={<Billing />} />
// or
{ path: "/billing", element: <Billing /> }
```

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.

## Preserve navigation beyond links

Read imported form handlers as well as `<Link>` elements. Include verified
internal destinations in each route's `navigation` array:

```json theme={null}
{
  "path": "/forgot-password",
  "navigation": [{ "to": "/otp", "label": "Continue" }]
}
```

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.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.