unmount

When React removes a component and its DOM nodes from the page, discarding its state.

In more detail

Before a component is removed, React runs the cleanup functions of its effects and clears its refs to null. Anything the component set up, such as listeners or timers, must be released there or it leaks.

Related terms

Taught in

References