react/npm-react
Stefan Dombrowski c9ab11f5ff Fix addon name in npm Readme 2015-06-08 22:39:12 +02:00
..
addons npm build: create addons directory that loads from lib. Closes #3780 2015-04-29 18:25:36 -04:00
README.md Fix addon name in npm Readme 2015-06-08 22:39:12 +02:00
addons.js Enable linting for __tests__ 2015-06-01 16:01:03 -07:00
package.json 0.14.0-alpha3 2015-05-27 16:47:35 -07:00
react.js Remove references to autoflow, error wrapper 2014-02-10 14:39:57 -08:00

README.md

react

An npm package to get you immediate access to React, without also requiring the JSX transformer. This is especially useful for cases where you want to browserify your module using React.

Note: by default, React will be in development mode. The development version includes extra warnings about common mistakes, whereas the production version includes extra performance optimizations and strips all error messages.

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.

Example Usage

var React = require('react');

// Addons can be accessed individually from the "addons" directory.
var createFragment = require('react/addons/createFragment');
var immutabilityHelpers = require('react/addons/update');
var CSSTransitionGroup = require('react/addons/CSSTransitionGroup');

For a complete list of addons visit the addons documentation page.