use-window-scroll
Tracks window scroll position
Import
Source
Docs
Package
Usage
use-window-scroll
returns current scroll position and a function to scroll smoothly to given position:
Scroll position x: 0, y: 0
Tracks window scroll position
Import
Source
Docs
Package
use-window-scroll
returns current scroll position and a function to scroll smoothly to given position:
Scroll position x: 0, y: 0