Gathering detailed insights and metrics for react-simple-infinite-scroll
Gathering detailed insights and metrics for react-simple-infinite-scroll
Gathering detailed insights and metrics for react-simple-infinite-scroll
Gathering detailed insights and metrics for react-simple-infinite-scroll
react-infinite-scroll-hook
A simple hook to create infinite scroll components
react-easy-infinite-scroll-hook
A react hook for creating simple, fast and lightweight components with infinite scrolling in any direction, supporting both windowed and scrollable elements.
use-react-infinite-scroll
React simple infinite scroll.
react-simple-infinite-scroll-patched
A (patched) brutally simple React infinite scroll component
A brutally simple react infinite scroll component
npm install react-simple-infinite-scroll
Typescript
Module System
Node Version
NPM Version
50.5
Supply Chain
84.2
Quality
73.6
Maintenance
50
Vulnerability
99.3
License
TypeScript (76.91%)
JavaScript (23.09%)
Total Downloads
99,628
Last Day
7
Last Week
42
Last Month
138
Last Year
2,479
MIT License
141 Stars
23 Commits
25 Forks
2 Watchers
16 Branches
7 Contributors
Updated on May 04, 2025
Minified
Minified + Gzipped
Latest Version
0.0.1
Package Id
react-simple-infinite-scroll@0.0.1
Size
33.64 kB
NPM Version
5.0.0
Node Version
8.0.0
Cumulative downloads
Total Downloads
Last Day
-12.5%
7
Compared to previous day
Last Week
-17.6%
42
Compared to previous week
Last Month
8.7%
138
Compared to previous month
Last Year
-23.9%
2,479
Compared to previous year
A brutally simple infinite scroll helper component.
1npm install react-simple-infinite-scroll --save
1import React from 'react' 2import InfiniteScroll from 'react-simple-infinite-scroll' 3 4export class MyInfiniteScrollExample extends React.Component { 5 state = { 6 items: [], 7 isLoading: true, 8 cursor: 0 9 } 10 11 componentDidMount() { 12 // do some paginated fetch 13 this.loadMore() 14 } 15 16 loadMore = () => { 17 this.setState({ isLoading: true, error: undefined }) 18 fetch(`https://api.example.com/v1/items?from=${this.state.cursor}`) 19 .then(res => res.json()) 20 .then( 21 res => { 22 this.setState(state => ({ 23 items: [...state.items, ...res.items], 24 cursor: res.cursor, 25 isLoading: false 26 })) 27 }, 28 error => { 29 this.setState({ isLoading: false, error }) 30 } 31 ) 32 } 33 34 render() { 35 return ( 36 <div> 37 <InfiniteScroll 38 throttle={100} 39 threshold={300} 40 isLoading={this.state.isLoading} 41 hasMore={!!this.state.cursor} 42 onLoadMore={this.loadMore} 43 > 44 {this.state.items.length > 0 45 ? this.state.items.map(item => ( 46 <MysListItem key={item.id} title={item.title} /> 47 )) 48 : null} 49 </InfiniteScroll> 50 {this.state.isLoading && ( 51 <MyLoadingState /> 52 )} 53 </div> 54 ) 55 } 56}
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 7/10 approved changesets -- score normalized to 7
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
74 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More