react-addons
This is an npm package containing only the react addons, and not the full react build
itself (although it requires it). This will play much more nicely with browserify
and other build tools than the old require('react/addons')
style.
This package is a direct copy/paste of the files in lib/
, with the paths to /React
changed
to require the base react
module. If this module gets significantly out of date, it should
be simple to rebuild using the React source.
react
is a peerDependency of this module, so it won't add extra cruft to your project
and will work nicely with browserify.
Example Usage
var React = require('react/addons');
var React = require('react');
var addons = require('react-addons');
var classSet = addons.classSet;