๐ Edit page
โ Add page
Component lifecycle
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
constructor()
static getDerivedStateFromProps()
render()
componentDidMount()
Updating
static getDerivedStateFromProps()
shouldComponentUpdate()
render()
getSnapshotBeforeUpdate()
componentDidUpdate()