- constructor
One-time setup, assignments.Do not do data-loading inside the constructor, instead do it in componentDidMount. - render
Return JSX, nothing else! - componentDidMount
Place for data-loading, api requests etc. - componentDidUpdate
Place to do more data-loading when state/props change. Render-method will be called just before this method. - componentWillUnmount
Place for cleanup
Rarely used lifecycle methods:
shouldComponentUpdate
getDerivedStateFromProps
getSnapshosBeforeUpdate