組件的生命周期分為三個部分:實例化只洒,存在期雷蹂,銷毀期
'溫馨提示:注意大小寫'
實例化:<p>
getDefaultProps()
getInitialState()
componentWillMount()
componentDidMount()
存在期:<p>
componentWillRecieveProps()
shouldComponentUpdate()
componentWillUpdate()
componentDidUpdate()
銷毀期:<p>
componentWillUnmount()