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

[docs] Add more words to downloads page

Ben Alpert committed Mar 5, 2014 at 20:16 UTC ac3051530ab48e772ce3bccebc8ac7a7036a86c1
1 file changed +17 -5
docs/downloads.md
+17 -5
@@ -57,15 +57,27 @@ The JSX transformer used to support [XML syntax](/react/docs/jsx-in-depth.html)
57
58 All scripts are also available via [CDNJS](http://cdnjs.com/libraries/react/).
59
60 -## Bower
60 +## npm
61 +
62 +To install the JSX transformer on your computer, run:
63
64 ```sh
63 -$ bower install --save react
65 +$ npm install -g react-tools
66 ```
67
66 -## NPM
68 +For more info about the `jsx` binary, see the [Getting Started](/react/docs/getting-started.html#offline-transform) guide.
69
68 -```sh
69 -$ npm install -g react-tools
70 +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:
71 +
72 +```js
73 +var React = require('react');
74 +React.renderComponent(...);
75 ```
76
77 +If you'd like to use any [add-ons](/react/docs/addons.html), use `var React = require('react/addons');` instead.
78 +
79 +## Bower
80 +
81 +```sh
82 +$ bower install --save react
83 +```