GoScrobble/web/node_modules/@restart/hooks/esm/useUpdatedRef.d.ts

9 lines
244 B
TypeScript

/// <reference types="react" />
/**
* Returns a ref that is immediately updated with the new value
*
* @param value The Ref value
* @category refs
*/
export default function useUpdatedRef<T>(value: T): import("react").MutableRefObject<T>;