Component Lifecycle

A component lifecycle only applied to component instances, not the component itself. But most of time, when saying component, it is referred to a component instance.

Phases of a component instance:

  1. Mount / Initial Render

  2. Re-Render

  3. Unmount

../../../../_images/component_lifecycle.jpg

Component instance lifecycle

Important

We can define code to run at a specific phase / point in time.