React Native Component Lifecycle

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

Question 8 of 20 in React Native Component Lifecycle