You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

react-infinite-scroll-reverse

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-infinite-scroll-reverse

React infinite scroll reverse component

1.0.3
Source
npm
Version published
Weekly downloads
80
-34.96%
Maintainers
1
Weekly downloads
 
Created
Source

REACT INFINITE SCROLL REVERSE COMPONENT

How to use

import InfiniteScrollReverse from "react-infinite-scroll-reverse";

In your component

<InfinteScrollReverse
  className="itemsContainer"
  hasMore={itemsList.length < itemsListTotal}
  isLoading={true || false}
  loadMore={this.getItems}
  loadArea={10}
>
  {itemsList.map(item => (
    <div key={item.id}>{item.name}</div>
  ))}
</InfinteScrollReverse>

Props

NameTypeDefaultisRequiredDescription
classNameStringInfiniteScrollReversefalseClass name of scroll container with overflow
hasMoreBooleanfalsetrueHas more triger
isLoadingBooleanfalsetrueData fetching triger, must be true when data is loading
loadMoreFunctiontrueLoad more function
loadAreaIntager10falseScroll area on top. Run loadMore function

Keywords

infinite

FAQs

Package last updated on 09 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts