Lifecycle Hooks

Definition
The framework allows the application to hook into the state transitions of a component with custom functions
Lifecycle Hooks

How does it work?

This is mostly a GUI pattern that is provided by the frontend framework. Each component is created, mounted, unmounted, destroyed, among others. The application can hook into these transitions with custom functions.

Examples

  • Vue, React, Angular

When should you use it?

  • To load data from the server

Links