react infinite scroll hook
npm install rc-infinite-scroll-hook
!Version
!npm bundle size (minified)
!npm type definitions


Infinite scroll react hook.
For example of the rc-infinite-scroll-hook, go to https://alllx.github.com/rc-infinite-scroll-hook.
OR
To run that demo on your own computer:
- Clone this repository
- npm i
- npm start
- Visit http://localhost:1234/
```
npm i rc-infinite-scroll-hook -S
``
import useInfiniteScroll from 'rc-infinite-scroll-hook'
```
containerRef: MutableRefObject
fetchItems: () => Promise
triggerFetchPos?: number; // default: 300, height in pixels to the end of the scroll, to start fetching items earlier.