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
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
React.cloneElement ReactElement cloneElement( ReactElement element, [object props]
Updating: shouldComponentUpdate boolean shouldComponentUpdate( object nextProps, object
Page 1 of 10