📄 useUpdatedRef.d.ts
/home/palash/git/site/node_modules/@restart/hooks/cjs/useUpdatedRef.d.ts
Language: ts • Lines: 8
/// <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>;