react-addons-shallow-compare

JSON →
library 15.6.3 ·javascript deprecated
verified Jun 7, 2026

Legacy React addon providing shallow comparison for shouldComponentUpdate, superseded by React.PureComponent in React 15.3. This package (v15.6.3) is no longer maintained and should not be used in new code. It performs a shallow equality check on props and state, returning true if the component should update. Available as an ES6 import, CommonJS require, or script tag via unpkg. Migration path: use React.PureComponent or React.memo for functional components.