Use caret range in blog instructions
The release was a bit broken.
Dan Abramov committed
Apr 11, 2017 at 22:02 UTC
aa1f8687d7c93a00c07d63237bcd54b23b4f50af
1 file changed
+2
-2
docs/_posts/2017-04-07-react-v15.5.0.md
+2
-2
@@ -164,13 +164,13 @@ We recommend using [Yarn](https://yarnpkg.com/) or [npm](https://www.npmjs.com/)
164
To install React with Yarn, run:
165
166
```bash
167
-yarn add react@15.5.0 react-dom@15.5.0
167
+yarn add react@^15.5.0 react-dom@^15.5.0
168
```
169
170
To install React with npm, run:
171
172
```bash
173
-npm install --save react@15.5.0 react-dom@15.5.0
173
+npm install --save react@^15.5.0 react-dom@^15.5.0
174
```
175
176
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.