UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

9 lines 320 B
/** * Get a constant value in React, only running the callback function once. `React.useMemo` does not * guarantee that a function will only be run once. * * @example * const value = useConstant(generateUniqueId) */ export declare function useConstant<T>(fn: () => T): T; //# sourceMappingURL=useConstant.d.ts.map