会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
绿树下仰望星空
博客园
首页
新随笔
管理
2020年4月1日
React 父组件重新渲染,子组件不需要渲染的三种性能优化方式(PureComponent,memo,shouldComponentUpdate);
摘要: //使用React普通函数时,可以使用两种优化方式,PureComponent和shouldComponentUpdate //shouldComponentUpdate //shouldComponentUpdate class Foo extends Component { shouldComp
阅读全文
posted @ 2020-04-01 09:08 随心的博客
阅读(5250)
评论(0)
推荐(1)
编辑