See this Lifecycle diagram which the React docs recommend as a cheatsheet.

Class component methods

The methods below make sense for class component - I donโ€™t know about for a functional component.

Mounting

  1. constructor()
  2. static getDerivedStateFromProps()
  3. render()
  4. componentDidMount()

Updating

  1. static getDerivedStateFromProps()
  2. shouldComponentUpdate()
  3. render()
  4. getSnapshotBeforeUpdate()
  5. componentDidUpdate()