Content deleted Content added
Lifecycle methods are important in ReactJS and without them, React would not know how and when to process any data at various points. I did not find it on this Wiki page, so I added it. |
m →Lifecycle Methods: I added more lifecycle methods. |
||
Line 69:
* shouldComponentUpdate is a lifecycle method that tells Javascript to update the component using a boolean variable.
* componentWillMount is a lifecycle method that tells Javascript to set up certain data before a component mounts (is inserted into the virtual DOM).
* componentDidMount is a lifecycle method which is similar to componentWillMount except that it runs after the render method and can be used to add JSON data and to define properties and states.
* render is the most important lifecycle method and the only required one in any component. The render method is what connects with the JSX and this method can display its own JSX.
===JSX===
|