React Native Component Lifecycle

What is the purpose of the getDerivedStateFromError method in React Native?
Next Question (19/20)

Question 19 of 20 in React Native Component Lifecycle