rc-infinite-scroll-hook
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

License Version npm bundle size (minified) npm type definitions Build Status Coverage Status

rc-infinite-scroll-hook

Infinite scroll react hook.

Demo

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:

Getting Started

Install

  npm i rc-infinite-scroll-hook -S

Import in component

  import useInfiniteScroll from 'rc-infinite-scroll-hook'

Supported properties

  containerRef: MutableRefObject<HTMLElement | null>;
  fetchItems: () => Promise<any>;
  triggerFetchPos?: number; // default: 300, height in pixels to the end of the scroll, to start fetching items earlier.

/rc-infinite-scroll-hook/

    Package Sidebar

    Install

    npm i rc-infinite-scroll-hook

    Weekly Downloads

    1

    Version

    1.1.3

    License

    MIT

    Unpacked Size

    7.24 kB

    Total Files

    8

    Last publish

    Collaborators

    • alllx