When a React component is updating the following life cycle methods are invoked in the specified order. An update to a React component can be caused by a change in its state or props or by calling forceUpdate()
static getDerivedStateFromProps()
shouldComponentUpdate()
render()
getSnapshotBeforeUpdate()
componentDidUpdate()
static getDerivedStateFromProps()
shouldComponentUpdate()
render()
getSnapshotBeforeUpdate()
componentDidUpdate()
No comments:
Post a Comment