Fix the router doc

This commit is contained in:
Dan Abramov
2018-01-08 14:36:28 +00:00
committed by GitHub
parent 553712636d
commit 4f0cdcffa9

View File

@@ -822,13 +822,13 @@ Create React App doesn't prescribe a specific routing solution, but [React Route
To add it, run:
```sh
npm install --save react-router react-router-dom
npm install --save react-router-dom
```
Alternatively you may use `yarn`:
```sh
yarn add react-router react-router-dom
yarn add react-router-dom
```
To try it, delete all the code in `src/App.js` and replace it with any of the examples on its website. The [Basic Example](https://reacttraining.com/react-router/web/example/basic) is a good place to get started.