Created
May 26, 2018 16:23
-
-
Save pkellner/91aa4cfff40ac0652a4295565c79e1a0 to your computer and use it in GitHub Desktop.
FullPage.js - 3rd Module - Custom WebPack
This file contains hidden or 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 CodeCampMenu from './CodeCampMenu'; | |
import PageTop from './PageTop'; | |
import Footer from './Footer'; | |
import Routes from '../../Routes'; | |
class FullPage extends Component { | |
constructor(props){ | |
super(props); | |
this.handler = this.handler.bind(this); | |
} | |
handler(val) { | |
this.props.action(); | |
} | |
render() { | |
return ( | |
<div> | |
<PageTop> | |
<CodeCampMenu /> | |
</PageTop> | |
<Routes action={this.handler} /> | |
<Footer /> | |
</div> | |
); | |
} | |
} | |
FullPage.defaultProps = {}; | |
export default FullPage; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think you can safely ignore the constructor and this.handler in routes.