Miss any of our Open RFC calls?Watch the recordings here! »

has-scroll-hook

1.0.3 • Public • Published

has-scroll-hook

A boolean scroll position React hook.

Installation:

yarn add has-scroll-hook # Or, npm install has-scroll-hook 

Usage:

import { useHasScroll } from "has-scroll-hook";
 
...
 
function YourComponent() {
  const hasScroll = useHasScroll();
}

Install

npm i has-scroll-hook

DownloadsWeekly Downloads

37

Version

1.0.3

License

MIT

Unpacked Size

2.63 kB

Total Files

4

Last publish

Collaborators

  • avatar