tanstack-router
Installation
SKILL.md
TanStack Router
Type-safe routing for React applications with first-class search params, loaders, and code splitting.
Instructions
- Leverage type safety - Define route params and search params with full TypeScript inference
- Use loaders - Fetch data before route renders
- Structure routes - Use file-based routing or code-first approach
- Handle errors - Define error boundaries per route
- Lazy load - Code split with lazy route imports
Setup
npm install @tanstack/react-router
# For file-based routing
npm install -D @tanstack/router-vite-plugin