@kform/react
Version:
React integration for KForm.
9 lines (8 loc) • 336 B
TypeScript
/**
* Hook providing access to the value of a provided argument in the previous
* render.
* @param value Value to store and return on the next render.
* @returns The value of the provided argument in the previous render or
* `undefined` during the first render.
*/
export declare function usePrevious<T>(value: T): T | undefined;