Last active
November 24, 2018 12:40
-
-
Save productioncoder/2d02922344bd3966c398342d4be3b44c to your computer and use it in GitHub Desktop.
Youtube in React: Trending with video list component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {VideoList} from '../../components/VideoList/VideoList'; | |
/* ... */ | |
class Trending extends React.Component { | |
/* ... */ | |
render() { | |
const loaderActive = this.shouldShowLoader(); | |
return (<VideoList | |
bottomReachedCallback={this.fetchMoreVideos} | |
showLoader={loaderActive} | |
videos={this.props.videos}/>); | |
} | |
/* ... */ | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment