Last active
December 18, 2018 13:04
-
-
Save productioncoder/0e5f6829b7657eb5a927f72c691938d4 to your computer and use it in GitHub Desktop.
Youtube in React: watch content 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 React from 'react'; | |
import {Video} from '../../../components/Video/Video'; | |
import {VideoMetadata} from '../../../components/VideoMetadata/VideoMetadata'; | |
import {VideoInfoBox} from '../../../components/VideoInfoBox/VideoInfoBox'; | |
import {Comments} from '../../Comments/Comments'; | |
import {RelatedVideos} from '../../../components/RelatedVideos/RelatedVideos'; | |
import './WatchContent.scss'; | |
class WatchContent extends React.Component { | |
render() { | |
return ( | |
<div className='watch-grid'> | |
<Video className='video' id={this.props.videoId}/> | |
<VideoMetadata className='metadata' viewCount={1000}/> | |
<VideoInfoBox className='video-info-box'/> | |
<Comments className='comments'/> | |
<RelatedVideos className='relatedVideos'/> | |
</div> | |
); | |
} | |
} | |
export default WatchContent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment