Last active
October 3, 2018 18:53
-
-
Save productioncoder/aaec5b2ad0291842d3e69874b81abc61 to your computer and use it in GitHub Desktop.
Making use of AppLayout in our App.js 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, {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; |
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 './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