react-scrollified
Simple React infinite scroll component, utilizing IntersectionObserver
Demo
Install
npm install --save react-scrollified
API - ReactScrollified Props
Option | type | default | Description |
---|---|---|---|
hasMore |
boolean |
--- | got more to load? |
loader |
ReactNode |
--- | element to use as loader |
loadMore |
function |
--- | function used to load more items |
offset? |
number |
0 (optional) | starting offset |
scrolledDiv? |
string |
window (optional) | the scrolled parent div id, !important - must have defined height. default is window |
Usage Example
.fillstart .mapx + y * step
License
MIT © iscotzan