挂载
- construct()
- static getDerivedStateFromProps()
- render()
- componentDidMount()
不建议使用:componentWillMount()
更新
- static getDerivedStateFromProps()
- shouldComponentUpdate()
- render()
- getSnapshotBeforeUpdate()
- componentDidUpdate()
不建议使用:componentWillUpdate()、componentWillReceiveProps()
卸载
- componentWillUnmount
错误处理
- static getDerivedStateFromError()
- componentDidCatch()
其他APIs
- setState()
- forceUpdate()
class属性
- defaultProps
- displayName
实例属性
- props
- state