ReactComponent的生命周期
Mounting - 生成
getDefaultProps() => getInitialState() => componentWillMount => render => componentDidMount
|
|
|
|
|
|
Updating - 更新
componentWillReciveProps => shouldComponentUpdate( true or false ) => componentWillUpdate => render => componentDidUpdate
Unmounting - 删除
componentWillUnmount
React事件绑定
|
|