常用简化版

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();