Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Created November 4, 2018 12:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save productioncoder/072e35bce41db696f141b3fd6d0e42dd to your computer and use it in GitHub Desktop.
Save productioncoder/072e35bce41db696f141b3fd6d0e42dd to your computer and use it in GitHub Desktop.
Youtube Watch component: displaying the correct video
export class WatchContent extends React.Component {
render() {
if (!this.props.videoId) {
return <div/>
}
return (
<div className='watch-grid'>
<Video className='video' id={this.props.videoId}/>
<VideoMetadata viewCount={1000}/>
<VideoInfoBox/>
<Comments amountComments={112499}/>
<RelatedVideos className='relatedVideos'/>
</div>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment