标签: javascript reactjs
我在React文档中发现,您可以使用PureComponent而不是Component,它实现了浅层道具比较和提升组件性能。
我使用connect将我的组件连接到redux,它已经在连接的组件中实现了浅层道具比较。
您是否知道使用PureComponent而不是Component with react-redux时,除了浅层比较之外还有其他好处?