Browse Source

Clarify dependency installation

Split browserify and webpack to separate sections.
Remove `babelify` from the webpack section since it's only for browserify
main
Lovisa Svallingson 9 years ago
parent
commit
48143d7b0e
  1. 9
      docs/getting-started.md

9
docs/getting-started.md

@ -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.

Loading…
Cancel
Save