Skip to content

useWindowScroll ​

Category
Browser

Hook that manages the window scroll position

typescript
import { useWindowScroll } from '@siberiacancode/reactuse';

Usage ​

typescript
const { value, scrollTo } = useWindowScroll();

Demo ​

Api ​

Contributors ​

Source • Demo