Downloads

Download the starter kit to get everything you need to get started with React. The starter kit includes React, the in-browser JSX transformer, and some simple example apps.

Development vs. Production Builds #

We provide two versions of React: an uncompressed version for development and a minified version for production. The development version includes extra warnings about common mistakes, whereas the production version includes extra performance optimizations and strips all error messages.

If you're just starting out, make sure to use the development version.

Individual Downloads #

React 0.12.1 (development) #

The uncompressed, development version of React core with inline documentation.

<script src="http://fb.me/react-0.12.1.js"></script>

React 0.12.1 (production) #

The compressed, production version of React core.

<script src="http://fb.me/react-0.12.1.min.js"></script>

React with Add-Ons 0.12.1 (development) #

The uncompressed, development version of React with add-ons.

<script src="http://fb.me/react-with-addons-0.12.1.js"></script>

React with Add-Ons 0.12.1 (production) #

The compressed, production version of React with add-ons.

<script src="http://fb.me/react-with-addons-0.12.1.min.js"></script>

JSX Transformer #

The JSX transformer used to support XML syntax in JavaScript.

<script src="http://fb.me/JSXTransformer-0.12.1.js"></script>

All scripts are also available via CDNJS.

npm #

To install the JSX transformer on your computer, run:

$ npm install -g react-tools

For more info about the jsx binary, see the Getting Started guide.

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:

var React = require('react');
React.render(...);

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

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 is recommended to completely remove the extra code present in development mode.

Bower #

$ bower install --save react