reaguj obciążenie po przewijaniu
componentWillMount(){
window.addEventListener('scroll', this.loadMore);
}
componentWillUnmount(){
window.removeEventListener('scroll', this.loadMore);
}
loadMore(){
if (window.innerHeight + document.documentElement.scrollTop === document.scrollingElement.scrollHeight) {
// Do load more content here!
}
}
Blue-eyed Bear