What is the purpose of the componentDidMount() lifecycle method?
The componentDidMount() method is used to perform side effects like API calls, setting up subscriptions, or directly manipulating the DOM after the component has been mounted (inserted into the DOM tree). It's the ideal place for initialization that requires the DOM nodes to be present.