常用简化版
Mounting
constructor() -> render() -> componentDidMount();
Updating
render() -> componentDidUpdate();
Unmounting
componentWillUnmount();
全
Mounting
constructor(props) -> static getDerivedStateFromProps(props, state) -> render() -> componentDidMount();
Updating
static getDerivedStateFromProps(props, state) -> shouldComponentUpdate() -> render() -> getSnapshotBeforeUpdate(prevProps, prevState) -> componentDidUpdate();
Unmounting
componentWillUnmount();