Try this exercise. Click the correct answer from the options.
Which method is called first during the mounting phase of the React component lifecycle?
Click the option that best answers the question.
- constructor()
- componentDidMount()
- render()
- static getDerivedStateFromProps()