react-scrolla
React Infinite Scroll Component
Install
$ npm install react-scrolla
Usage
var ReactScrolla = ; <ReactScrolla percentage=85 onPercentage=thishandleScrollToPercentage> items</ReactScrolla>//=>
API
props
percentage
Type: number
Default: 90
Which percentage when scroll over will trigger onPercentage
.
onPercentage
Type: function
How to fetch more items.
isLoading
Type: boolean
Default: false
onPercentage
will not be triggered when isLoading
is true.
License
MIT © C.T. Lin