React生命周期和hook函数

生命周期的状态: ① Mount →插入真实DOM ② Update → 重新渲染 ③ Unmount → 被移除真实DOM 钩子函数: componentWillMount() componentDidMount() → 开启监听发送ajax请求 componentWillUpdate() componentDidUpdate() componentWillUnmount() → 做收尾工作,如
相关文章
相关标签/搜索