ReactDOM.render render( ReactElement element, DOMElement container, [function callback]
forceUpdate void forceUpdate( [function callback] ) By
React React is the entry point to the React library. If you're using one of the prebuilt packages it's available
One of React's biggest strengths is that it's easy to track the flow of data through your React components. When you look at a component, you can easily see exactly which props
Updating: componentDidUpdate void componentDidUpdate( object prevProps, object prevState
JSX looks like HTML but there are some important differences you may run into. For DOM differences, such as the inline style
replaceState void replaceState( object nextState, [function callback] )
For parent-child communication, simply pass props. For child-parent
if-else statements don't work inside JSX. This is because JSX is just syntactic sugar for function calls and object construction. Take this basic example:
There's another (uncommon) way of communicating between components: simply expose a method
Page 1 of 10