Skip to content

This package will let you to call a function on scrolling window or an element

Notifications You must be signed in to change notification settings

snappmarket/react-snp-infinite-scroller

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-snp-infinite-scroller

Github | Documentation

Step 1: Install it

Install react-snp-infinite-scroller using npm

npm install --save react-snp-infinite-scroller

Step 2: Import it

Import it into your component

import {useElementScroll, useWindowScroll} from 'react-snp-infinite-scroller';

Step 3: Use it

Make window or an element call a function each time that it reaches to the end of the page

useElementScroll({reference, callback, hasMore, threshold});
useWindowScroll({callback, hasMore, threshold});

About

This package will let you to call a function on scrolling window or an element

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%