Not working: require('react/addons')
问题 I'm using ReactJS & Browserify. I can't figure out why this require doesn't give me access to ReactCSSTransitionGroup : var React = require('react/addons'); I tried adding this and it's still not working: var ReactCSSTransitionGroup = React.ReactCSSTransitionGroup; To get it working I had to add: var ReactCSSTransitionGroup = require("react/lib/ReactCSSTransitionGroup"); How can I gain access to all addons through: require('react/addons') ? 回答1: Requiring 'react/addons' simply adds the addons