useUpdatedRef
API
import useUpdatedRef from '@restart/hooks/useUpdatedRef'
useUpdatedRef
<T>(value: T) => MutableRefObject<T>Returns a ref that is immediately updated with the new value
Parameters
value
TThe Ref value
Return Value MutableRefObject<T>