Skip to content

Instantly share code, notes, and snippets.

@productioncoder productioncoder/Watch.js
Last active Dec 15, 2018

Embed
What would you like to do?
Including VideoInfoBox in Watch component
import React from 'react';
import './Watch.scss';
import {RelatedVideos} from '../../components/RelatedVideos/RelatedVideos';
import {Video} from '../../components/Video/Video';
import {VideoMetadata} from '../../components/VideoMetadata/VideoMetadata';
import {VideoInfoBox} from '../../components/VideoInfoBox/VideoInfoBox';
export class Watch extends React.Component {
// stretch?
render() {
return (
<div className='watch-grid'>
<Video className='video' id='-7fuHEEmEjs'/>
<VideoMetadata className='metadata' viewCount={1000}/>
<VideoInfoBox className='video-info-box'/>
<div className='comments' style={{width: '100%', height: '100px', background: '#9013FE'}}>comments</div>
<RelatedVideos className='related-videos'/>
</div>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.