UNPKG

@anton.bobrov/react-vevet-hooks

Version:

A collection of custom React hooks designed to seamlessly integrate with the `Vevet` library

15 lines 471 B
import { DependencyList, EffectCallback } from 'react'; /** * Custom React hook that triggers an effect once the page has fully loaded. * * @example * const MyComponent = () => { * useOnPageLoad(() => { * console.log('Page has loaded!'); * }, []); * * return <div>Welcome to my website!</div>; * }; */ export declare function useOnPageLoad(effect: EffectCallback, deps: DependencyList): void; //# sourceMappingURL=useOnPageLoad.d.ts.map