Helps bridge gap between callback ref and state. Manages the element called with callback ref api using state variable.
No arguments.
Returned items | Type | Description |
---|---|---|
ref | (refElement: RefElementOrNull<T>) => void | The callback ref |
element | RefElementOrNull<T> | The element linked to the ref |
Join our discord server! You can click the floating discord icon at the bottom right of the screen and chat with us!