📄️ Understanding Lifecycle Methods
React components come with several lifecycle methods that you can override to run code at particular times in the process. Understanding these methods can help you control what happens when a component mounts, updates, or unmounts.
📄️ Mounting, Updating, and Unmounting phases
Introduction to React Component Lifecycle