Use caret range in blog instructions

The release was a bit broken.
This commit is contained in:
Dan Abramov 2017-04-11 22:02:43 +01:00
parent cec9b07402
commit aa1f8687d7
1 changed files with 2 additions and 2 deletions

View File

@ -164,13 +164,13 @@ We recommend using [Yarn](https://yarnpkg.com/) or [npm](https://www.npmjs.com/)
To install React with Yarn, run:
```bash
yarn add react@15.5.0 react-dom@15.5.0
yarn add react@^15.5.0 react-dom@^15.5.0
```
To install React with npm, run:
```bash
npm install --save react@15.5.0 react-dom@15.5.0
npm install --save react@^15.5.0 react-dom@^15.5.0
```
We recommend using a bundler like [webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/) so you can write modular code and bundle it together into small packages to optimize load time.