会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
若栖1017
如果你有梦想,你要去捍卫它。如果你有追求,你要去实现它。
博客园
首页
新随笔
联系
管理
订阅
05 2023 档案
Hook
摘要:constructor useState getDerivedStateFromProps useState 里面 update 函数 shouldComponentUpdate useMemo render 函数本身 componentDidMount useEffect componentDid
阅读全文
posted @
2023-05-30 16:35
若栖1017
阅读(34)
评论(0)
推荐(0)
编辑
react
摘要:1.生命周期 主要包含3个阶段 分别是挂载,更新,卸载 挂载阶段包含: 1.construct 数据初始化 2.componentWillMount render之前调用 代表已经初始化数据但是没有渲染dom,因此在此方法中同步调用setState不会被额外触渲染 3.getDerivedState
阅读全文
posted @
2023-05-30 16:32
若栖1017
阅读(24)
评论(0)
推荐(0)
编辑