lifecycle method

A method of a class component that React calls at a particular moment, such as after mounting, after an update or after an error.

In more detail

Hooks replaced most of them in function components; error boundaries are the main remaining reason to write one. Examples are componentDidMount, componentDidUpdate, componentWillUnmount and componentDidCatch.

Related terms

Taught in

References