Describe getDerivedStateFromProps. | Lifecycle functions | react Interview Questions | NextRound.in