What is the correct order of execution for the mounting phase in a class component?
The correct order of execution for the mounting phase in a class component is: constructor → getDerivedStateFromProps → render → componentDidMount. This sequence represents the initialization, preparation of state based on props, rendering of the component, and finally performing side effects after mounting.