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.

posted @ 2019-07-08 14:41  zzfx  阅读(319)  评论(0编辑  收藏  举报