Skip to content

Instantly share code, notes, and snippets.

@productioncoder productioncoder/App.js
Last active Oct 3, 2018

Embed
What would you like to do?
Making use of AppLayout in our App.js component
import React, {Component} from 'react';
import {Home} from './containers/Home/Home';
import {AppLayout} from './components/AppLayout/AppLayout';
class App extends Component {
render() {
return (
<AppLayout>
<Home/>
</AppLayout>
);
}
}
export default App;
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'>
<VideoGrid title='Trending'/>
<VideoGrid title='Autos & Vehicles' hideDivider={true}/>
</div>
</React.Fragment>
);
}
}
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.