Gathering detailed insights and metrics for react-infinitum
Gathering detailed insights and metrics for react-infinitum
Gathering detailed insights and metrics for react-infinitum
Gathering detailed insights and metrics for react-infinitum
npm install react-infinitum
Typescript
Module System
Node Version
NPM Version
69.2
Supply Chain
91.3
Quality
75.2
Maintenance
100
Vulnerability
100
License
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
5 Stars
7 Commits
1 Watchers
3 Branches
1 Contributors
Updated on Oct 21, 2016
Minified
Minified + Gzipped
Latest Version
0.3.0
Package Id
react-infinitum@0.3.0
Size
3.75 kB
NPM Version
3.3.12
Node Version
5.0.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
5
React Infinitum is a window infinite scroll loader
npm install --save react-infinitum
1import React from 'react'; 2import Infinitum from 'react-infinitum'; 3 4let fakeData = [ 5 {city: 'Curitiba', country: 'Brazil'}, 6 {city: 'New York', country: 'United States'}, 7 {city: 'Tokyo', country: 'Japan'} 8]; 9 10class Feeds extends React.Component { 11 constructor(props) { 12 super(props); 13 14 this.state = { 15 cities: fakeData, 16 loadMore: true 17 }; 18 } 19 20 loadMoreCities() { 21 // Set loadMore to false and ReactInfinitum will be blocked 22 this.setState({ 23 loadMore: false 24 }); 25 26 // Simulate an AJAX request 27 ajax.get('/cities') 28 .then(res => { 29 this.setState({ 30 cities: this.state.cities.concat(res), 31 loadMore: true 32 }); 33 }) 34 .catch(() => { 35 // No more cities 36 this.setState({ 37 loadMore: false 38 }); 39 }); 40 } 41 42 render() { 43 return ( 44 <Infinitum onReachBottom={this.loadMoreCities.bind(this)} loadMore={this.state.loadMore}> 45 {this.state.cities.map((city, i) => { 46 return ( 47 <div key={i}> 48 <p>{city.city}</p> 49 <p>{city.country}</p> 50 </div> 51 ); 52 })} 53 </Infinitum> 54 ); 55 } 56} 57 58export default Feeds;
Name | Type | Required? | Default Value | Description |
---|---|---|---|---|
onReachBottom | function | Yes | - | The callback that will be fired when window reach the page bottom |
loadMore | boolean | No | true | The flag that indicate if will call the callback |
trigger | number | No | 0.85 | A number between 0 - 1 that indicate the window scroll percentage to reach on page bottom |
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
Found 0/7 approved changesets -- 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
Score
Last Scanned on 2025-05-12
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