@samitouri / QOS-React-2 / commits / e1d4668fd5

Update downloads page for 0.14

Ben Alpert committed Oct 7, 2015 at 12:50 UTC e1d4668fd5453157083665dbe034590b54ac83c0
1 file changed +7 -6
docs/downloads.md
+7 -6
@@ -4,7 +4,7 @@ title: Downloads
4 layout: single
5 ---
6 Download the starter kit to get everything you need to
7 -[get started with React](/react/docs/getting-started.html). The starter kit includes React, the in-browser JSX transformer, and some simple example apps.
7 +[get started with React](/react/docs/getting-started.html). The starter kit includes React and some simple example apps.
8
9 <div class="buttons-unit downloads">
10 <a href="/react/downloads/react-{{site.react_version}}.zip" class="button">
@@ -52,16 +52,17 @@ All scripts are also available via [CDNJS](https://cdnjs.com/libraries/react/).
52
53 ## npm
54
55 -If you're using an npm-compatible packaging system like browserify or webpack, you can use the `react` package. After installing it using `npm install react` or adding `react` to `package.json`, you can use React:
55 +We recommend using React from npm with a bundler like [browserify](http://browserify.org/) or [webpack](https://webpack.github.io/). You can use the `react` and `react-dom` packages. After installing it using `npm install --save react react-dom`, you can use:
56
57 ```js
58 -var React = require('react-dom');
59 -ReactDOM.render(...);
58 +var React = require('react');
59 +var ReactDOM = require('react-dom');
60 +ReactDOM.render(<App />, ...);
61 ```
62
62 -If you'd like to use any [add-ons](/react/docs/addons.html), use `var React = require('react/addons');` instead.
63 +Each of the [add-ons](/react/docs/addons.html) lives in its own package.
64
64 -**Note:** by default, React will be in development mode. To use React in production mode, set the environment variable `NODE_ENV` to `production`. A minifier that performs dead-code elimination such as [UglifyJS](https://github.com/mishoo/UglifyJS2) is recommended to completely remove the extra code present in development mode.
65 +**Note:** by default, React will be in development mode. To use React in production mode, set the environment variable `NODE_ENV` to `production` (using envify or webpack's DefinePlugin). A minifier that performs dead-code elimination such as [UglifyJS](https://github.com/mishoo/UglifyJS2) is recommended to completely remove the extra code present in development mode.
66
67 ## Bower
68