Multi-strategy router for React: use it as a full framework or as a routing library
open sourceMITfree
React Router is a router for React that you can use maximally as a framework or minimally as a library with your own architecture, in framework, data or declarative mode. Its packages include the core react-router, create-react-router for new projects, @react-router/dev tooling, adapters for Node.js, Express, Architect and Cloudflare, a web server and file-system routes. The project is MIT licensed and copyright Shopify (earlier React Training and Remix Software).
Problems it solves
- add routing and URLs to my React single-page app
- a full-stack React framework with loaders and server rendering
- nested routes with data loading in React
Features
- Framework, data and declarative modes
- File-system routes
- Adapters for Node.js, Express, Architect and Cloudflare
- Project creation with create-react-router
Alternatives
The same job
These do what React Router does.
- TanStack Router Fully type-safe router for React and Solid apps
