useRefElement
About
Helps bridge gap between callback ref and state. Manages the element called with callback ref api using state variable.
Examples
Arguments
No arguments.
Returns an array of two items
Returned items | Type | Description |
---|---|---|
ref | (refElement: RefElementOrNull<T>) => void | The callback ref |
element | RefElementOrNull<T> | The element linked to the ref |