Router Docs
AI/LLM: This documentation page is available in plain markdown format at/router/latest/docs/how-to/install.md
How to Install TanStack Router
Prerequisites#
- React 18.x.x or 19.x.x
- ReactDOM 18.x.x or 19.x.x with createRoot support
- TypeScript 5.3.x or higher (recommended)
Installation Steps#
Install the package
Choose your package manager:
shellnpm install @tanstack/react-routershellpnpm add @tanstack/react-routershellyarn add @tanstack/react-routershellbun add @tanstack/react-routershelldeno add npm:@tanstack/react-routerVerify installation
Check that the package appears in your package.json:
json{ "dependencies": { "@tanstack/react-router": "^x.x.x" } }