React—生命周期

页面加载

constructor—>componentWillMount()—>render—>componentDidMuont()

点击一个按钮

componentWillReceiveProps()—>shouldComponentUpdata()—>componentWillUpdate()—>render—>ComponentDidUpdate()

 

 

posted @ 2018-05-22 14:51  MoenyChen  阅读(102)  评论(0)    收藏  举报