React.addonsis deprecated as of React v15.5. The add-ons have now all either been deprecated or moved to separate modules.
The React add-ons are a collection of useful utility modules for building React apps. These should be considered experimental and tend to change more often than the core.
createFragment, to create a set of externally-keyed children.
The add-ons below are in the development (unminified) version of React only:
Perf, a performance profiling tool for finding optimization opportunities.
ReactTestUtils, simple helpers for writing test cases.
The add-ons below are considered legacy and their use is discouraged.
shallowCompare, a helper function that performs a shallow comparison for props and state in a component to decide if a component should update.
ReactDOMFactories, pre-configured DOM factories to make React easier to use without JSX.
You can install the add-ons individually from npm (e.g.
npm install react-addons-create-fragment) and import them:
import createFragment from 'react-addons-create-fragment'; // ES6 var createFragment = require('react-addons-create-fragment'); // ES5 with npm
When using a CDN, you can use
react-with-addons.js instead of
The add-ons will be available via the
React.addons global (e.g.