P4.5: Lifecycle and useEffect Every React component goes through a lifecycle: Mounting: When the component is first created and rendered on the browser page. Updating: When the component's state or props change, causing it to re-render. Unmounting: When the component is removed from the page. To perform side effects (fetching API data, setting up timers, or manual DOM adjustments) during these lifecycle stages, we use the useEffect Hook.