为什么要在旧的生命周期中加UNSAFE_ 下方React官方文档
异步渲染之更新 – React Blog
新版的移除了上边三个 新增了
getDerivedStateFromProps(), getSnapshotBeforeUpdate() 生命周期使用需要为静态的