React LifeCycle method

componentDidMount :
The componentDidMount() method is called after the component is rendered.
This is where you run statements that requires that the component is already placed in the DOM.

componentWillMount :
This is invoked immediately before a component gets rendered into the DOM.
In the case, when you call setState() inside this method, the component will not re-render