Combinatronics

813 BMarkdownView Raw
1# React Router
2
3The `react-router` package is the heart of [React Router](https://github.com/remix-run/react-router) and provides all
4the core functionality for both
5[`react-router-dom`](https://github.com/remix-run/react-router/tree/main/packages/react-router-dom)
6and
7[`react-router-native`](https://github.com/remix-run/react-router/tree/main/packages/react-router-native).
8
9If you're using React Router, you should never `import` anything directly from
10the `react-router` package, but you should have everything you need in either
11`react-router-dom` or `react-router-native`. Both of those packages re-export
12everything from `react-router`.
13
14If you'd like to extend React Router and you know what you're doing, you should
15add `react-router` **as a peer dependency, not a regular dependency** in your
16package.