Fetch data in componentDidMount. When the response arrives, store the data in state, triggering a render to update your UI. When
You don't have to go full React. The component lifecycle events, especially componentDidMount and componentDidUpdate, are good places to put your
setProps void setProps( object nextProps, [function callback] )
In JSX, <MyComponent /> alone is valid while <MyComponent> isn't. All tags must be closed, either with the self-closing format or with
React provides a ReactTransitionGroup add-on component as a low-level API for animation, and a ReactCSSTransitionGroup for easily implementing basic
React React is the entry point to the React library. If you're using one of the prebuilt packages it's available
React.createElement ReactElement createElement( string/ReactClass type, [object props]
If your React component's render function is "pure" (in other words, it renders the same result given the same props and state), you can use this mixin for a performance boost
React has implemented a browser-independent events and DOM system for performance and cross-browser compatibility reasons. We took the opportunity to clean up a few rough edges
getInitialState object getInitialState() Invoked
Page 9 of 10