Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Youtube HomeContent with InfiniteScroll
import {InfiniteScroll} from '../../../components/InfiniteScroll/InfiniteScroll';
/* ... */
class HomeContent extends React.Component {
render() {
const trendingVideos = this.getTrendingVideos();
const categoryGrids = this.getVideoGridsForCategories();
return (
<div className='home-content'>
<div className="responsive-video-grid-container">
<InfiniteScroll bottomReachedCallback={this.props.bottomReachedCallback} showLoader={this.props.showLoader}>
<VideoGrid title='Trending' videos={trendingVideos}/>
{categoryGrids}
</InfiniteScroll>
</div>
</div>
);
}
/* ... */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.