mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge pull request #5658 from applegrain/clarify-dependency-installation
Clarify dependency installation
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user