@dh-react-hooks/use-scroll
TypeScript icon, indicating that this package has built-in type declarations

0.2.4 • Public • Published

@dh-react-hooks/use-scroll

NPM version codecov

react hooks for getting scroll position

Installation

npm i @dh-react-hooks/use-scroll

Arguments

props type required default description

Way to Ride

  • Common jS
const useScroll = require('@dh-react-hooks/use-scroll')

  const {x, y} = useScroll.default()
  • ESM
import useScroll from '@dh-react-hooks/use-scroll'
  
  const {x, y} = useScroll()

Package Sidebar

Install

npm i @dh-react-hooks/use-scroll

Weekly Downloads

3

Version

0.2.4

License

ISC

Unpacked Size

13.6 kB

Total Files

13

Last publish

Collaborators

  • danhuang1202