Categories

Jul 2, 2019 in React JS

Q:

What is the lifecycle method getDerivedStateFromProps of React?

1 Answer

Jul 2, 2019

 Invoked right before calling render() and is invoked on every render. This exists for rare use cases where you need derived state. Worth reading if you need derived state.

Click here to read more about React JS
Click here to read more about Insurance

Related questions

Madanswer
Jul 2, 2019 in React JS
Jul 2, 2019 in React JS
Jul 2, 2019 in React JS
...