27

React v16.3 版本新生命周期函数浅析及升级方案

 6 years ago
source link: https://zhuanlan.zhihu.com/p/36062486?
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
一个月前,React 官方正式发布了 v16.3 版本。在这次的更新中,除了前段时间被热烈讨论的新 Context API 之外,新引入的两个生命周期函数 getDerivedStateFromProps,getSnapshotBeforeUpdate 以及在未来 v17.0 版…

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK