Search for a command to run...
Client-first, server-capable router for React and Solid with full type safety and first-class URL state management. Supports nested and layout routes, built-in data loaders with SWR-style caching, deferred loading, prefetching, and SSR. Designed to work with TanStack Query, SWR, Apollo, and custom data fetching.
TanStack Router is part of the TanStack ecosystem alongside Query, Table, and Form. It stands out from React Router and Remix by offering 100% inferred TypeScript support: routes, path params, search params, and navigation are fully typed with zero runtime cost. Partners include Cloudflare, Prisma, Clerk, Sentry, and Netlify. It powers TanStack Start, a full-stack framework with server functions.
Key capabilities:
Use cases include React and Solid SPAs, full-stack apps with TanStack Start, dashboards with complex URL state, and applications that benefit from type-safe routing and search params. Works with Vite, Webpack, Rspack, and esbuild. ESLint plugin and DevTools are available.