react-fast-compare
npmv3.2.2TypeScriptFastest deep equal comparison for React. Great for React.memo & shouldComponentUpdate. Also really fast general-purpose deep comparison.
Overview
react-fast-compare is an npm package that fastest deep equal comparison for React. Great for React.memo & shouldComponentUpdate. Also really fast general-purpose deep comparison. The latest version is 3.2.2, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need fastest deep equal comparison for React. Great for React.memo & shouldComponentUpdate. Also really fast general-purpose deep comparison and value a focused solution.
When not to use it
Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- Large dependency tree (46 direct dependencies) increases install size and audit surface.
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of react-fast-compare.
Dependencies
Dev (46)
Used by
Popular packages that depend on react-fast-compare.
Alternatives to react-fast-compare
Fast deep equal
node's assert.deepEqual algorithm
node's assert.deepEqual algorithm except for NaN being equal to NaN
Measure the difference between two strings using the Levenshtein distance algorithm
Like lodash isEqualWith but for shallow equal.
Brand checking of React Elements.
Cooperative scheduler for the browser environment.
It's a very fast and efficient glob library for Node.js
Compare strings containing a mix of letters and numbers in the way a human being would in sort order.
Fast, in memory work queue
Next.js dotenv file loading
Really Fast Deep Clone
Frequently installed together
Native navigation primitives for your React Native app.
The Expo SDK
More powerful alternative to Animated library for React Native.
Declarative API exposing native platform touch and gesture system to React Native
Tools for making advanced Metro bundler features work
React Native for Web
Error overlay for universal Expo apps.
React Server Components bindings for DOM using Webpack. This is intended to be integrated into meta-frameworks. It is not intended to be imported directly.
Simple and complete React Native testing utilities that encourage good testing practices.
Lightweight debugging utility for Node.js and the browser
Brand checking of React Elements.
Escape RegExp special characters
Version history
| Version | Published | License |
|---|---|---|
| 3.2.2latest | 3 years ago | MIT |
| 3.2.1 | 3 years ago | MIT |
| 3.2.0 | 6 years ago | MIT |
| 3.1.1 | 6 years ago | MIT |
| 3.1.0 | 6 years ago | MIT |
| 3.0.2 | 6 years ago | MIT |
| 3.0.1 | 6 years ago | MIT |
| 3.0.0 | 6 years ago | MIT |
| 3.0.0-beta.1 | 6 years ago | MIT |
| 2.0.4 | 7 years ago | MIT |
| 2.0.3 | 7 years ago | MIT |
| 2.0.2 | 8 years ago | MIT |
| 2.0.1 | 8 years ago | MIT |
| 2.0.0 | 8 years ago | MIT |
| 1.0.0 | 8 years ago | MIT |
Maintainers
Frequently asked questions
How do I install react-fast-compare?
Run `npm install react-fast-compare` to add react-fast-compare to your npm project.
What license is react-fast-compare released under?
react-fast-compare is distributed under the MIT license.
How popular is react-fast-compare?
react-fast-compare has approximately 0 downloads per week and 1 known dependent packages.