阅读官方
React documentation后,我遇到了关于PureComponent的
this:
@H_404_10@Furthermore,React.PureComponent’s shouldComponentUpdate() skips prop
updates for the whole component subtree. Make sure all the children
components are also “pure”.
为什么跳过道具更新整个子树的确意味着避免使用非纯组件? PureComponent的组件子树中的非纯组件的后果是什么(一般情况下,以及在未设计/应该对props进行响应的情况下).