UNPKG

@kform/react

Version:

React integration for KForm.

7 lines (6 loc) 223 B
/** * Hook for creating a value exactly once. * @param fn Function which created the value to return. * @returns Value created on the first render of the hook. */ export declare function useConstant<T>(fn: () => T): T;