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()

Author of content
Edit this page

Made by Michael Sakhniuk

Twitter