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.
 
 
 
 

1.1 KiB

id title layout permalink prev next
addons Add-ons docs addons.html tooling-integration.html animation.html

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:

  • ReactTransitions, for dealing with animations and transitions that are usually not simple to implement, such as before a component's removal.
  • ReactLink, to simplify the coordination between user's form input data and and the component's state.
  • classSet(), for manipulating the DOM class string a bit more cleanly.
  • ReactTestUtils, simple helpers for writing test cases (unminified build only).
  • cloneWithProps(), to make shallow copies of React components and change their props.
  • update(), a helper function that makes dealing with immutable data in JavaScript easier.

To get the add-ons, use react-with-addons.js (and its minified counterpart) rather than the common react.js.