Method 1: static getDerivedStateFromError
Let's define the getDerivedStateFromError method for the ErrorBoundary component in this lesson.
We'll cover the following...
Updating the State
Whenever an error is thrown in a descendant component, this method is called first, and the error thrown is passed as an argument.
Whatever value is returned from ...