页面加载
constructor—>componentWillMount()—>render—>componentDidMuont()
点击一个按钮
componentWillReceiveProps()—>shouldComponentUpdata()—>componentWillUpdate()—>render—>ComponentDidUpdate()
页面加载
constructor—>componentWillMount()—>render—>componentDidMuont()
点击一个按钮
componentWillReceiveProps()—>shouldComponentUpdata()—>componentWillUpdate()—>render—>ComponentDidUpdate()
转载于:https://www.cnblogs.com/dreamhouse/p/9072045.html