PureComponent & shouldComponentUpdate

Called to determine whether the change in props and state should trigger a re-render.

Component always returns true. PureComponent implements a shallow comparison on props and state and returns true if any props or states have changed.

原文地址:https://www.cnblogs.com/feng9exe/p/11151086.html