Chapter 3
Managing User Interactivity
Section 5
Component Lifecycle Events
In a React application, components are created dynamically, according to the evolution of the application at runtime. Let us get a brief idea about a component’s lifecycle events and a component’s constructor execution. Let us then look into the event flow and highlights of the grouped lifecycle events of Mounting, Updating via props, and Updating via setState(). After component creation, let us learn that React will trigger a few events corresponding to the respective phases of the component's lifecycle and finally let’s learn how to show the quantity of items added to the cart.