What is the purpose of the componentDidMount() method in React?
To perform actions after the component is mounted
The componentDidMount() method is called after the component is mounted and is often used to perform actions such as fetching data from an API or setting up subscriptions.