Skip to content

useWindowScroll ​

browser
test coverage
Last changed: last month

Hook that manages the window scroll position

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

Usage ​

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

Demo ​

Api ​

Source ​

Source • Demo

Contributors ​

Avatardebabin

Released under the MIT License.