From 48143d7b0e28023866aa9165fe95f8e87aa71a64 Mon Sep 17 00:00:00 2001 From: Lovisa Svallingson Date: Mon, 14 Dec 2015 09:28:20 -0700 Subject: [PATCH] Clarify dependency installation Split browserify and webpack to separate sections. Remove `babelify` from the webpack section since it's only for browserify --- docs/getting-started.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/getting-started.md b/docs/getting-started.md index 14f1363c..5a388495 100644 --- a/docs/getting-started.md +++ b/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.