==> mounting(一次)
- constructor----------------(初始化數(shù)據(jù)使用)
- componentWillMount ------ 掛載之前(做動畫)
- render ------------------第一次渲染(第一次渲染時要處理的邏輯)
- componentDidMount ------掛載之后(請求數(shù)據(jù),拿到真實的dom)

==> updating
-?shouldComponentUpdate----- 性能優(yōu)化,如果寫了就必須返回一個布爾值,默認為true,當為false的時候updation階段停止
-?componentWillUpdate -------- 數(shù)據(jù)更新之前
- componentWillReceiveProps ----- 父組件數(shù)據(jù)發(fā)生改變的時候觸發(fā)
-?componentDidUpdate ---------- 數(shù)據(jù)更新之后

==> unmounting
-?componentWillUnmount -------- 組件銷毀時調(diào)用