Installation in React

From the TanStack Router cheat sheet · Setup & Installation · verified Jul 2026

Installation

Install TanStack Router with bundler plugin

bash
npm install @tanstack/react-router
npm install -D @tanstack/router-plugin
💡 Router plugin is required for file-based routing
⚡ Supports Vite, Webpack, Rspack, and Esbuild
🔍 Plugin auto-generates route tree and types
🎯 TypeScript v5.3+ recommended for best experience
installationsetupvite

More React tasks

Back to the full TanStack Router cheat sheet