- 父子组件的交互 props
- 子父交互 通过回调函数
- 同级间的通信 找共同父级
- 受“状态”控制
- 受控组件可以对输入的数据进行筛选
- 非受控组件 一般用于没有初始值,想和第三方库配合
- defaultProps
- constructor
- componentWillMount 删除
- render
- componentDidMount
- shouldComponentUpdate true
- componentWillUpdate 删除
- componentDidUpdate
- componentWillReceiveProps 能改状态的
- componentWillUnmount
- 智能组件(可以获取数据)
- UI组件 / 木偶组件