Form components such as <input>, <textarea>, and <option> differ from other native components because they can be mutated
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
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:
Updating: componentDidUpdate void componentDidUpdate( object prevProps, object prevState
replaceState void replaceState( object nextState, [function callback] )
React lets you use whatever style of data management you want, including mutation. However, if you can use immutable data in performance-critical parts of your application
For parent-child communication, simply pass props. For child-parent
There's another (uncommon) way of communicating between components: simply expose a method
CDN-hosted React We provide CDN-hosted versions of React on our download page. These pre-built files use the UMD
Page 1 of 10