Which method is called first during the mounting phase of a class component?
The constructor() is the first method called during the mounting phase of a class component. It's used for initializing state and binding event handlers. The constructor is called before the component is mounted to the DOM.