Posted on April 18, 2023, 4:05 pm, by admin, under
react.
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 […]
Posted on April 13, 2023, 10:34 am, by admin, under
react.
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 […]
Posted on April 13, 2023, 10:17 am, by admin, under
wordpress.
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.