UNPKG

@anton.bobrov/react-vevet-hooks

Version:

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

14 lines 487 B
/** * Custom React hook that listens for changes in the viewport orientation. * * @example * const MyComponent = () => { * useOnViewportOrientationChange(() => { * console.log('Viewport orientation changed!'); * }); * * return <div>Change the orientation of the viewport to see the effect!</div>; * }; */ export declare function useOnViewportOritentationChange(effectProp: () => void): void; //# sourceMappingURL=useOnViewportOritentationChange.d.ts.map