React Docs
Called immediately after a component is mounted. Setting state here will trigger re-rendering.
Deprecated
See
React Docs