react 生命周期

创建

1.construct state初始化挂载一些防抖节流函数
2.gerDriviedStatefromprop根据props修改state
3.render函数
4.ComponentwillMount

更新

1.shouldCompenontUpgrade拦截器,布尔值
2.render
3.getsnapshotbeforeupdate获取更新前一些状态
4.componentdidupdate

卸载

1.compenontwillunmout清理时间

你可能感兴趣的:(react.js,前端,前端框架)