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

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

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