Practice
The new static
class MyComponent extends React.Component {
static getDerivedStateFromProps(props, state) {
// ...
}
}
This lifecycle method, together with componentDidUpdate()covers all the use cases of componentWillReceiveProps()
Sign in and the lectures you have studied will be marked in this list.
Choose a course
Comments