Lifecycle methods are to be used to run code and interact with your component at different points in the components life. These methods are based around a component Mounting, Updating, and Unmounting.
React Boilerplate [React + Babel + Webpack]
This modified text is an extract of the original Stack Overflow Documentation created by following contributors
and released under CC BY-SA 3.0