1 编写形式 类组件 继承 react.component render函数 函数式组件 函数式 2 状态管理 不用hooks函数式组件无状态 3生命周期 只有类组件中使用 4使用 函数式组件调用函数,类组件先实例化,实例化后调用render方法 5大量使用this