React生命周期更新过程

更新过程

更新过程会依次调用以下生命周期函数,其中render函数和“装载”过程一样:

componentWillReceiveProps
shouldComponentUpdate
componentWillUpdate
render
componentDidUpdate

备注:
并不是所有的更新过程都会执行全部函数。

评论

暂无评论