Usage
Parameters
Return Value
Returns a callback ref that handles all provided refs, ornull if all refs are null/undefined.
Features
- Handles both function refs and object refs
- Optimized with
useMemofor performance - Compatible with floating-ui patterns
Examples
Forwarding Refs with Internal Usage
Multiple Internal Refs
Conditional Refs
Related
This hook is similar to theuseMergeRefs hook from floating-ui and follows the same patterns.