react-scroll-position returns the browser viewport X and Y scroll position. It is highly optimized 🚀 using the special techniques to avoid unnecessary rerenders!