UNPKG

@supunlakmal/hooks

Version:

A collection of reusable React hooks

7 lines (6 loc) 209 B
/** * Custom hook that runs a callback function exactly once when the component mounts. * * @param onMount - The function to call on mount. */ export declare const useMount: (onMount: () => void) => void;