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

Made in India with ❤️ by Rajesh Kumar Yadav

Twitter