- 博客(1)
- 收藏
- 关注
原创 Component与PureComponent
什么是PureComponent PureComponent可以理解为一个性能优化版的Component,它在shouldComponentUpdate中对props和state浅比较(shallow comparison),所以如果数据是复杂类型,可能会意料不到的bug出现 两者的区别 除了为你提供了一个具有浅比较的shouldComponentUpdate方法,PureComponent和Co...
2019-07-12 10:36:21 186 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人