React Router v7
Complete guide to React Router v7 with Library Mode and Framework Mode, data loading, actions, and modern routing patterns
Table of Contents
Installation & Setup
Setting up React Router v7 in Library Mode and Framework Mode
Installation & Basic Setup
Installing React Router v7 and choosing between Library and Framework modes
Routing Basics
Core routing concepts and components
Route Configuration
Defining routes and nested routes
Navigation Components
Link, NavLink, and programmatic navigation
Data Loading
Loaders, data fetching, and streaming
Loaders & Data Fetching
Loading data before rendering components
Revalidation & Fetchers
Data revalidation and non-navigation data fetching
Forms & Actions
Form handling, actions, and mutations
Forms & Actions
Handling forms with actions and progressive enhancement
Error Handling
Error boundaries and error handling patterns
Error Boundaries
Handling errors in loaders, actions, and components
Framework Mode Features
Server-side rendering, streaming, and framework-specific features
SSR & Streaming
Server-side rendering and HTML streaming in Framework Mode