Merge pull request #5658 from applegrain/clarify-dependency-installation

Clarify dependency installation
(cherry picked from commit b6a01d7733)
This commit is contained in:
Paul O’Shannessy committed 2015-12-16 09:57:58 -08:00
1 parent 617cfdd434
commit 852a63fe23
1 file changed
+8 -1
+8 -1
View File
@@ -27,13 +27,20 @@ ReactDOM.render(
);
```
To install React DOM and build your bundle after installing browserify:
To install React DOM and build your bundle with browserify:
```sh
$ npm install --save react react-dom babelify babel-preset-react
$ browserify -t [ babelify --presets [ react ] ] main.js -o bundle.js
```
To install React DOM and build your bundle with webpack:
```sh
$ npm install --save react react-dom babel-preset-react
$ webpack
```
> Note:
>
> If you are using ES2015, you will want to also use the `babel-preset-es2015` package.