React 基础React 组件生命周期React 组件生命周期单个组件生命周期父子组件生命周期,和 Vue 的一样单个生命周期(图)原图:https://projects.wojtekmaj.pl/react-lifecycle-methods-diagram/