UNPKG

beautiful-react-hooks

Version:

A collection of beautiful (and hopefully useful) React hooks to speed-up your components and hooks development

12 lines (11 loc) 290 B
export interface ViewportState { width: number; height: number; scrollX: number; scrollY: number; } /** * Returns updated information on the current viewport state */ declare const useViewportState: (debounceBy?: number) => ViewportState; export default useViewportState;