Skip to content

Instantly share code, notes, and snippets.

Last active November 24, 2018 16:05
What would you like to do?
Youtube in React: video list generating VideoPreview elements
getVideoPreviews() {
if(!this.props.videos || !this.props.videos.length) {
return null;
const firstVideo = this.props.videos[0];
if (!firstVideo.snippet.description) {return null}
return => (
<VideoPreview horizontal={true} expanded={true} video={video} key={} pathname={'/watch'}
search={'?v=' +}/>)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment