摘要: 前言 学习React,生命周期很重要,我们了解完生命周期的各个组件,对写高性能组件会有很大的帮助. Ract生命周期 React 生命周期分为三种状态 1. 初始化 2.更新 3.销毁 初始化 1、getDefaultProps() 设置默认的props,也可以用dufaultProps设置组件的默 阅读全文
posted @ 2018-09-17 11:26 yiku 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 转自:https://cloud.tencent.com/info/63f656e0ba879ad59cb5fdba96716601.html 转自:https://cloud.tencent.com/info/63f656e0ba879ad59cb5fdba96716601.html Reactj 阅读全文
posted @ 2018-09-17 10:55 yiku 阅读(10475) 评论(0) 推荐(1) 编辑