React—生命周期

页面加载

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

点击一个按钮

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

 

 

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