Package Exports
- react-infinite-scroll-loading
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-infinite-scroll-loading) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
React Infinite Scroll Loading
Infinite scroll component for React.
Installation and Usage
CJS or ESM
$ npm i react-infinite-scroll-loading -S
# or
$ yarn add react-infinite-scroll-loadingUMD
Getting Started
see https://github.com/CassetteRocks/react-infinite-scroller
Reset pageStart
import InfiniteScroll from 'react-infinite-scroll-loading';
<InfiniteScroll
pageStart={0}
loadMore={loadFunc}
hasMore={true || false}
loader={<div className="loader" key={0}>Loading...</div>}
resetPage={true || false}
>
{items} // <-- This is the content you want to load
</InfiniteScroll>