Introduction
The mounting phase is when a React component is created and added to the screen for the first time. It helps show content to users.
When you want to display a new part of your app on the screen.
When you need to set up data or start timers as soon as a component appears.
When you want to fetch information from the internet right after showing a component.
When you want to prepare something only once before the user interacts with the component.