@hakuna-matata-ui/hooks
Version:
React hooks for Chakra components
9 lines • 308 B
TypeScript
import * as React from "react";
/**
* React hook to persist any value between renders,
* but keeps it up-to-date if it changes.
*
* @param value the value or function to persist
*/
export declare function useLatestRef<T>(value: T): React.MutableRefObject<T>;
//# sourceMappingURL=use-latest-ref.d.ts.map