React Router is a lightweight, fully-featured routing library for the React JavaScript library. React Router runs everywhere that React runs; on the web, on the server (using node.js), and on React Native.
If you're reading this, you're on the dev branch where we are actively developing the next major version of React Router, version 6. We're really excited about v6 and believe it delivers a lot of improvements over v5, but we do not yet recommend it for use in production. Please wait until we have a stable release before deploying it on your production app.
If you're new to React Router, we recommend you start with the getting started guide.
If you're migrating to v6 from v5 (or v4, which is the same as v5), check out the migration guide.
When v6 is stable we will publish the docs on our website.
There are many different ways to contribute to React Router's development. If you're interested, check out our contributing guidelines to learn how you can get involved.
This repository is a monorepo containing the following packages:
Detailed release notes for a given version can be found on our releases page.
You may provide financial support for this project by donating via Open Collective, attending one of our workshops, or purchasing one of our online courses. Thank you for your support!
react-router
is developed and maintained 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!