
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
react-component-scrollload
Advanced tools
A dummy React component to implement continuous load on scroll for modern browser.
var ScrollLoad = require('react-component-scrollload');
<ScrollLoad className="via transferPropsTo" loadMore={this.loadMore} hasMore={!!this.state.meta.next} isLoading={this.state.loading} loader={<div className="loading"><img src="/img/loading.svg" /></div>}>
{items}
</ScrollLoad>
npm install react-component-scroll --save
propTypes: {
hasMore: React.PropTypes.bool.isRequired, // if there is more to load
loadMore: React.PropTypes.func.isRequired, // callback to load more
isLoading: React.PropTypes.bool.isRequired, // indicate if a loading is ongoing
useDocument: React.PropTypes.bool, // if true, the scrolling is calculated based on the document and not the element, default false
threshold: React.PropTypes.number, // pixel threshold, default 1000
loader: React.PropTypes.component, // displayed loader component, default React.DOM.div(null, 'Loading...')
// disable pointer to improve scrolling perf
disablePointer: React.PropTypes.number, // ms delay until disablePointerClass class is removed after last scroll event, default 0 (feature disabled)
disablePointerClass: React.PropTypes.string // default class added to child wrapper div, default 'disable-pointer'
}
A dummy way to improve scrolling performance.
Add to your css a disable-pointer definition, default name defined by disablePointerClass.
.disable-pointer {
pointer-events: none !important;
}
Add disablePointer prop with a delay in milliseconds.
<ScrollLoad disablePointer={100}>...
MIT
FAQs
React component to implement continuous load on scroll
The npm package react-component-scrollload receives a total of 9 weekly downloads. As such, react-component-scrollload popularity was classified as not popular.
We found that react-component-scrollload demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.