React LifeCycle Methods & re-learning 2019
React LifeCycle Methods & re-learning 2019
v16.9.0
https://reactjs.org/docs/react-component.html#the-component-lifecycle
- static getDerivedStateFromProps()
https://reactjs.org/docs/react-component.html#static-getderivedstatefromprops
- getSnapshotBeforeUpdate()
https://reactjs.org/docs/react-component.html#getsnapshotbeforeupdate
UNSAFE_componentWillUpdate()
UNSAFE_componentWillReceiveProps()
UNSAFE_componentWillMount()
react-lifecycle-methods-diagram
http://projects.wojtekmaj.pl/react-lifecycle-methods-diagram/
v16.4+
v16.3
https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#migrating-from-legacy-lifecycles
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/11576706.html
未经授权禁止转载,违者必究!