react-router
Installation
SKILL.md
React Router (@tanstack/react-router)
This skill builds on router-core. Read router-core first for foundational concepts.
This skill covers the React-specific bindings, components, hooks, and setup for TanStack Router.
CRITICAL: TanStack Router types are FULLY INFERRED. Never cast, never annotate inferred values. CRITICAL: TanStack Router is CLIENT-FIRST. Loaders run on the client by default, not on the server. CRITICAL: Do not confuse
@tanstack/react-routerwithreact-router-dom/react-router. They are completely different libraries with different APIs.
Full Setup: File-Based Routing with Vite
1. Install Dependencies
npm install @tanstack/react-router
npm install -D @tanstack/router-plugin @tanstack/react-router-devtools
Related skills