Declarative routing for React
JavaScript Objective-C CSS HTML Python Java
Latest commit 27b7d54 Jul 23, 2017 @jharris4 jharris4 committed with timdorr react-router-config - renderRoutes(routes, otherProps = {}) (#5137)
* add optional extraProps argument to react-router-config's renderRoutes function

* Rename otherProps argument to extraProps in react-router-config's renderRoutes function

* Add unit tests for renderRoutes' extraProps argument

* switch to using jest for tests


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:

Package Version Docs Description
react-router npm The core of React Router
react-router-dom npm DOM bindings for React Router
react-router-native npm React Native bindings for React Router
react-router-redux npm Integration with React Router and Redux
react-router-config npm Static route config helpers


Development of react-router is done by React Training and many amazing contributors. If you're interested in learning more about what React can do for your company, please get in touch!


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