Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Last active October 3, 2018 18:56
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/d5701167a3b58a9e021365d6b217720c to your computer and use it in GitHub Desktop.
Save productioncoder/d5701167a3b58a9e021365d6b217720c to your computer and use it in GitHub Desktop.
Youtube Home component with VideoGrid
import React from 'react';
import './Home.scss';
import {VideoGrid} from '../../components/VideoGrid/VideoGrid';
import {SideBar} from '../SideBar/SideBar';
export class Home extends React.Component {
render() {
return (
<React.Fragment>
<SideBar/>
<div className='home'>
<div className="responsive-video-grid-container">
<VideoGrid title='Trending'/>
<VideoGrid title='Autos & Vehicles' hideDivider={true}/>
</div>
</div>
</React.Fragment>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment