Q. Which lifecycle method is called when a component is first added to the DOM in class components?
β
Correct Answer: (A)
componentDidMount
Explanation: componentDidMount runs after the first render.