This directory contains focused, step-by-step instructions for common TanStack Router tasks. Each guide is designed to be:
Task-focused: Covers one specific goal from start to finish
Self-contained: All necessary steps included, no prerequisites assumed
Copy-paste ready: Working code examples you can use immediately
Problem-solving oriented: Addresses real-world scenarios and common issues
Install TanStack Router - Basic installation steps
Use Environment Variables - Configure and use environment variables across different bundlers
Deploy to Production - Deploy your app to hosting platforms
Set Up Server-Side Rendering (SSR) - Implement SSR with TanStack Router
Migrate from React Router v7 - Complete migration guide from React Router v7
Set Up Basic Authentication - Implement basic auth with React Context
Integrate Authentication Providers - Use Auth0, Clerk, or Supabase
Set Up Role-Based Access Control - Add permission-based routing
Set Up Testing with Code-Based Routing - Comprehensive testing setup for manually defined routes
Test File-Based Routing - Specific patterns for testing file-based routing applications
Debug Router Issues - Troubleshoot common routing problems and performance issues
Integrate with Shadcn/ui - Set up Shadcn/ui components with animations and styling
Integrate with Material-UI (MUI) - Configure MUI components with proper theming and TypeScript
Integrate with Framer Motion - Add smooth animations and transitions to your routes
Integrate with Chakra UI - Build responsive, accessible UIs with Chakra UI components
Foundation Level (Start Here):
Intermediate Level (Common Patterns):
Advanced Level (Power User Patterns):
Specialized Use Cases:
Each guide follows a consistent structure:
Quick Start - Brief overview of what you'll accomplish
Step-by-step instructions - Platform-specific or scenario-specific guidance
Production checklist - Verification steps (where applicable)
Common problems - Troubleshooting for typical issues
Common next steps - Optional related tasks you might want to tackle
When adding new how-to guides: