摘要: 总结-旧生命周期 初始化阶段: 由ReactDOM.render()触发 初次渲染 constructor() componentWillMount() render() componentDidMount() > 常用 一般在这个钩子中做一些初始化的事,例如:开启定时器,发送网络请求,订阅消息 更 阅读全文
posted @ 2023-02-04 11:20 K-L 阅读(97) 评论(0) 推荐(0)