React Router handles client-side navigation for React apps. You can adopt it as a full framework with server adapters or as a routing library within your own stack.
Overview
React Router maps URLs to UI in React applications. It supports several adoption paths: a framework mode with file-based routes and deployment tooling, a data-focused mode, or a minimal declarative routing layer you combine with your own architecture.
The ecosystem ships separate packages for project scaffolding, development tooling, and runtime adapters. Adapters exist for Node, Express, Architect, and Cloudflare, plus file-system route helpers, so the same routing concepts can run in different hosting environments.
Governance is community-oriented, with public proposals shaping the roadmap. Upgrades between major lines are non-breaking when moving from the prior major release, with documentation for adopters already on the earlier line.
Key features
- Declarative route definitions
- Framework and library modes
- Node and Express adapters
- Cloudflare deployment adapter
- File-system routing package
- Data loading integration
- Community governance model
Use cases
- Single-page React apps
- Full-stack React frameworks
- Server-rendered React routes
- Incremental router adoption