What are the lifecycle methods in React?
Question :
What are the lifecycle methods in React?
React components have lifecycle methods that allow you to perform actions at specific stages of a component's life, such as when it is being created, updated, or removed. Some common lifecycle methods are componentDidMount, componentDidUpdate, and componentWillUnmount.