Component Lifecycle

The component lifecycle is the sequence of phases a React component goes through: mounting (appearing on screen), updating (re-rendering when data changes)…