Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Last active December 18, 2018 13:04
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/0e5f6829b7657eb5a927f72c691938d4 to your computer and use it in GitHub Desktop.
Save productioncoder/0e5f6829b7657eb5a927f72c691938d4 to your computer and use it in GitHub Desktop.
Youtube in React: watch content component
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