Mark As Completed Discussion

Build your intuition. Click the correct answer from the options.

Which lifecycle method is invoked when an error occurs during rendering, in a lifecycle method, or in the constructor of any child component?

Click the option that best answers the question.

  • componentDidCatch
  • componentDidMount
  • componentWillUnmount
  • componentDidUpdate