use-callback-ref
npmv1.3.3TypeScriptThe same useRef, but with callback
Overview
use-callback-ref is an npm package that the same useRef, but with callback. It is extremely widely used, with about 65M downloads per week and 1 known dependents in the graph. The latest version is 1.3.3, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need the same useRef, but with callback and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (65M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of use-callback-ref.
Dependencies
Runtime (1)
Dev (6)
Used by
Popular packages that depend on use-callback-ref.
Alternatives to use-callback-ref
Cooperative scheduler for the browser environment.
React is a JavaScript library for building user interfaces.
Sidecar code splitting utils
Just create a single stylesheet...
Next.js dotenv file loading
A framework for building native apps using React
Types for the Expo config object app.config.ts
A library for interacting with the app.json
React hook which returns the latest callback without changing the reference
React Freeze
More powerful alternative to Animated library for React Native.
DevTools plugin helpers for Expo
Frequently installed together
TypeScript definitions for react
Sidecar code splitting utils
Removes body scroll without content _shake_
Just create a single stylesheet...
React is a JavaScript library for building user interfaces.
Version history
| Version | Published | License |
|---|---|---|
| 1.3.3latest | 1 year ago | MIT |
| 1.3.2 | 2 years ago | MIT |
| 1.3.1 | 2 years ago | MIT |
| 1.3.0 | 4 years ago | MIT |
| 1.2.5 | 5 years ago | MIT |
| 1.2.4 | 6 years ago | MIT |
| 1.2.3 | 6 years ago | MIT |
| 1.2.2 | 6 years ago | MIT |
| 1.2.1 | 6 years ago | MIT |
| 1.2.0 | 6 years ago | MIT |
| 1.1.0 | 6 years ago | MIT |
| 1.0.1 | 7 years ago | MIT |
| 1.0.0 | 7 years ago | MIT |
Maintainers
Frequently asked questions
How do I install use-callback-ref?
Run `npm install use-callback-ref` to add use-callback-ref to your npm project.
What license is use-callback-ref released under?
use-callback-ref is distributed under the MIT license.
How popular is use-callback-ref?
use-callback-ref has approximately 64,978,275 downloads per week and 1 known dependent packages.