DOM
useWindowScroll
Track the window scroll (MDN, opens in a new tab) position reactively.
API
useWindowScroll(): { x: number; y: number }DOM
Track the window scroll (MDN, opens in a new tab) position reactively.
useWindowScroll(): { x: number; y: number }