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.
- static getDerivedStateFromError()
- componentDidCatch()
Below methods are called when there is an error during rendering, in a lifecycle method, or in the constructor of any child component.