The current system of packaging react/addons isn't great because you need to pull in all the addons even if you just want to use one of them. Instead, let's make it so you can do require('react/addons/TransitionGroup') and similar.
This should be as simple as adding a few files to build/npm-react that require the (private) internal modules.
// npm-react/addons/TransitionGroup.js
module.exports = require('../lib/ReactTransitionGroup.js');
The current system of packaging react/addons isn't great because you need to pull in all the addons even if you just want to use one of them. Instead, let's make it so you can do
require('react/addons/TransitionGroup')and similar.This should be as simple as adding a few files to build/npm-react that require the (private) internal modules.