useMergeRefs
Callable
Type parameters
- T
The type of the ref value
Parameters
rest...refs: Refs<T>[]
The refs to be merged
Returns (value: T | null) => void
A function that sets the value of all merged refs
Parameters
value: T | null
Returns void
- T
The type of the ref value
The refs to be merged
A function that sets the value of all merged refs
Returns a function that merges multiple React refs into one.