react-infscroll
v1.0.0
Published
React Infinite Scrolling Component
Downloads
6
Maintainers
Readme
react-infscroll
React Infinite Scroller Component
Install
npm install react-infscroll --save
Quick Start
'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
class InfScrollExample extends React.Component {
constructor(props){
super(props);
}
getNext(){ /* ... */ }
render(){
return (
<InfiniteScroll
loadingEl={<Loading/>}
getNext={this.getNext}
canGetNext={true}>
<Content/>
</InfiniteScroll>
);
}
}
const content = document.getElementById('content');
ReactDOM.render(<InfScrollExample/>, content);