react-router README

The project's README from github.com/remix-run/react-router. As one markdown file: README.md.

React Router

npm package build

Get Started · Documentation · Changelog · Discord


Getting Started

React Router is a multi-strategy router for React. You can use it maximally as a Framework or minimally as a library with your own architecture. Check out the Getting Started docs and choose the mode that works best for your app.

Packages

Package Description Modes
react-router Core Framework, Data, Declarative
create-react-router Project creation Framework
@react-router/dev Development tooling Framework
@react-router/node Node.js Adapter Framework
@react-router/serve Web Server Framework
@react-router/express Express Adaptrer Framework
@react-router/architect Architect Adapter Framework
@react-router/cloudflare Cloudflare Adapter Framework
@react-router/fs-routes File-system routes Framework

Previous Versions

Looking for docs for an earlier version of React Router?

react-router (remix-run/react-router)

Searching Database…

What is this?React Router is a multi-strategy router for React: it lets you define routes and handle navigation in React apps.
Is it a framework or a library?Both by design: you can adopt it maximally as a full React framework, or minimally as a plain library inside your own architecture.
Which getting started guide should I follow?Two Getting Started guides are linked - one for framework mode, one for library mode - so you follow the path you chose.
What does my app need before I can use it?It is a router for React, so React itself is the base requirement; the repo's own toolchain builds with pnpm on Node >=22.22.0.
How bumpy are upgrades between major versions?Major migrations are expected: the README keeps an Upgrade from v7 guide and archives docs for previous versions v5, v6, and v7.
Which packages does the project ship?Core react-router plus create-react-router, @react-router/dev, @react-router/node, @react-router/serve, adapters for Express, Architect and Cloudflare, and @react-router/fs-routes for file-based routes.
What are similar projects?ice, react-navigation, taro, riot, mithril.js, shaders, router, umi
Creator
remix-run
Size
47.2 MB
Stars
56.6K
Age
12y
Commits · 90 Days