Archive for April 2023

React Component Lifecycle

Consts of 3 phases: Phase 1: The mounting phase is when a new component is created and inserted into the DOM or, in other words, when the life of a component begins. This can only happen once, and is often called “initial render.” Phase 2: The updating phase is when the component updates or re-renders. This reaction is triggered […]

React Hooks History and Definition

In React, state refers to a structure that keeps track of how data changes over time in your application. In other words, state = current situation = current snapshot = status of the component. The state of a React class is a special property/variable (actually it is Object which acts as a container for variables and arrays) that controls the […]

WordPress Hooks Easy Map

Action Hook is used to run custom functions at a specific point during the execution of WordPress Core. Filter Hook is used to modify or customize and return data used by other functions.