You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1.5 KiB
26 lines
1.5 KiB
11 years ago
|
---
|
||
|
id: addons
|
||
|
title: Add-ons
|
||
|
permalink: addons.html
|
||
|
prev: tooling-integration.html
|
||
11 years ago
|
next: animation.html
|
||
11 years ago
|
---
|
||
|
|
||
11 years ago
|
`React.addons` is where we park some useful utilities for building React apps. **These should be considered experimental** but will eventually be rolled into core or a blessed utilities library:
|
||
|
|
||
11 years ago
|
- [`TransitionGroup` and `CSSTransitionGroup`](animation.html), for dealing with animations and transitions that are usually not simple to implement, such as before a component's removal.
|
||
|
- [`LinkedStateMixin`](two-way-binding-helpers.html), to simplify the coordination between user's form input data and the component's state.
|
||
|
- [`classSet`](class-name-manipulation.html), for manipulating the DOM `class` string a bit more cleanly.
|
||
|
- [`TestUtils`](test-utils.html), simple helpers for writing test cases (unminified build only).
|
||
|
- [`cloneWithProps`](clone-with-props.html), to make shallow copies of React components and change their props.
|
||
|
- [`update`](update.html), a helper function that makes dealing with immutable data in JavaScript easier.
|
||
|
|
||
|
The add-ons below are in the development (unminified) version of React only:
|
||
|
|
||
|
- [`PureRenderMixin`](pure-render-mixin.html), a performance booster under certain situations.
|
||
|
- [`Perf`](perf.html), for measuring performance and giving you hint where to optimize.
|
||
11 years ago
|
|
||
11 years ago
|
To get the add-ons, use `react-with-addons.js` (and its minified counterpart) rather than the common `react.js`.
|
||
10 years ago
|
|
||
10 years ago
|
When using the react package from npm, just simply `require('react/addons')` instead of `require('react')` to get React with all of the addons.
|