
react render 在每次渲染的时候 会执行什么生命周期方法
展开全部
实例化
----首次实例化
--------getDefaultProps
--------getInitialState
--------componentWillMount
--------render
--------componentDidMount
实例化完成后的更新
----getInitialState
----componentWillMount
----render
----componentDidMount
存在期
----组件已存在时的状态改变
--------componentWillReceiveProps
--------shouldComponentUpdate
--------componentWillUpdate
--------render
--------componentDidUpdate
销毁&清理期
--------componentWillUnmount
----首次实例化
--------getDefaultProps
--------getInitialState
--------componentWillMount
--------render
--------componentDidMount
实例化完成后的更新
----getInitialState
----componentWillMount
----render
----componentDidMount
存在期
----组件已存在时的状态改变
--------componentWillReceiveProps
--------shouldComponentUpdate
--------componentWillUpdate
--------render
--------componentDidUpdate
销毁&清理期
--------componentWillUnmount
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询