Created
November 4, 2018 12:41
-
-
Save productioncoder/072e35bce41db696f141b3fd6d0e42dd to your computer and use it in GitHub Desktop.
Youtube Watch component: displaying the correct video
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
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