- useRefCallback<T>(initialValue): [ref: MutableRefObject<T>, refCallback: ((value) => void)]
Returns [ref: MutableRefObject<T>, refCallback: ((value) => void)]
- useRefCallback<T>(initialValue): [ref: RefObject<T>, refCallback: RefCallback<T>]
Returns [ref: RefObject<T>, refCallback: RefCallback<T>]
- useRefCallback<T>(): [ref: MutableRefObject<T | undefined>, refCallback: ((value) => void)]
Returns [ref: MutableRefObject<T | undefined>, refCallback: ((value) => void)]
Returns a ref object and a callback to update the value of this ref.