Skip to content

生命周期

渲染阶段

  Render:渲染之前,决定模板内容
  ComponentDidMount:完成了渲染,通常用来做请求
  更新:
     ShouldComponentUpdate:决定是否更新,return true则更新,反之不更新
     ComponentDidUpdate:完成更新后触发
   卸载:
     componentWillUnmount:即将卸载