Skip to content

Commit

Permalink
Merge pull request facebook#1222 from spicyj/npm-dl
Browse files Browse the repository at this point in the history
[docs] Add more words to downloads page
  • Loading branch information
chenglou committed Mar 6, 2014
2 parents c5f56f3 + ac30515 commit af1b634
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions docs/downloads.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,27 @@ The JSX transformer used to support [XML syntax](/react/docs/jsx-in-depth.html)

All scripts are also available via [CDNJS](http://cdnjs.com/libraries/react/).

## Bower
## npm

To install the JSX transformer on your computer, run:

```sh
$ bower install --save react
$ npm install -g react-tools
```

## NPM
For more info about the `jsx` binary, see the [Getting Started](/react/docs/getting-started.html#offline-transform) guide.

```sh
$ npm install -g react-tools
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:

```js
var React = require('react');
React.renderComponent(...);
```

If you'd like to use any [add-ons](/react/docs/addons.html), use `var React = require('react/addons');` instead.

## Bower

```sh
$ bower install --save react
```

0 comments on commit af1b634

Please sign in to comment.