React Router

Declarative routing for React


View the docs here

Migrating from 2.x/3.x?

3.x docs

2.x docs


This repository is a monorepo that we manage using Lerna. That means that we actually publish several packages to npm from the same codebase, including:

react-routernpmThe core of React Router
react-router-domnpmDOM bindings for React Router
react-router-nativenpmReact Native bindings for React Router
react-router-reduxnpmIntegration with React Router and Redux
react-router-confignpmStatic route config helpers


Thanks to our sponsors for supporting the development of React Router.

Also, thanks to BrowserStack for providing the infrastructure that allows us to run our build in real browsers.