2020年10月21日
摘要: 一 结论 React.Component 是没有做任何渲染优化的,但凡调用this.setState 就会执行render的刷新操作。 React.PureComponent 是继承自Component,并且对重写了shouldComponentUpdate周期函数,对 state 和 props 阅读全文
posted @ 2020-10-21 23:06 长安城下翩翩少年 阅读(753) 评论(0) 推荐(0) 编辑