React ~ 生命周期
React 的生命周期分为三个阶段: 初始化、更新、销毁。?
1、getDefaultProps()
2、getInitialState()
3、componentWillMount()
4、 render()
5、componentDidMount()
componentWillReceiveProps(nextProps)
7、shouldComponentUpdate(nextProps,nextState)
8、componentWillUpdata(nextProps,nextState)
9、render()
10、componentDidUpdate()
11、componentWillUnmount()
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |