mount and unmount

Mounting is when a component is first added to the page; unmounting is when it is removed.

In more detail

Components set up listeners and state when they mount and must clean them up when they unmount. A dialog that unmounts should return focus to the element that opened it.

Related terms

Taught in

References