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.
npm install react-addons-shallow-compareNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use shallowCompare in a class component's shouldComponentUpdate to prevent unnecessary re-renders.
Replace class component with React.PureComponent, or use React.memo for functional components.
Use default import: import shallowCompare from 'react-addons-shallow-compare';
Access via React.addons.shallowCompare, and ensure React is loaded first.
Change to `import shallowCompare from 'react-addons-shallow-compare';`
Run `npm install react-addons-shallow-compare@15.6.3` (or use yarn).
No dependency data recorded yet.