FrontendDeveloper.in

React question detail

What are the methods invoked during error handling?

Below methods are called when there is an error during rendering, in a lifecycle method, or in the constructor of any child component.

  1. static getDerivedStateFromError()
  2. componentDidCatch()
Back to all React questions
Get LinkedIn Premium at Rs 399