What is the unmounting phase in React's component lifecycle?
The unmounting phase is when a component is being removed from the DOM. This can happen when the parent component no longer renders the component, when the user navigates away from a route that contained the component, or when the component is manually unmounted. This phase allows the component to clean up any resources it was using.