Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Last active October 3, 2018 18:53
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/aaec5b2ad0291842d3e69874b81abc61 to your computer and use it in GitHub Desktop.
Save productioncoder/aaec5b2ad0291842d3e69874b81abc61 to your computer and use it in GitHub Desktop.
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