生命周期函数:组建在某一个时期会自动被框架调用的函数
component 对其他生命周期函数做了实现 唯独没有render()函数
性能优化 shouldComponentUpdate
请求放在componentWillMount componentDidMount 里面
设置和清除定时器分别在 componentDidMount componentWillUnmount
componentWillReceiveProps(nextProps)
shouldComponentUpate(nextProps,nextState)