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

Clarify dependency installation
This commit is contained in:
Paul O’Shannessy
2015-12-14 11:20:54 -08:00
+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.