Created
April 11, 2017 08:24
-
-
Save NikolayGalkin/60c8bd2075e63cec11c0c8beec6e1189 to your computer and use it in GitHub Desktop.
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
class App extends Component { | |
componentWillMount() { | |
this.classes = this.props.location.pathname === '/' ? | |
'page-container background-blue mobile-fix-height': | |
'page-container'; | |
} | |
render() { | |
return ( | |
<div className={this.classes}> | |
<Header /> | |
{this.props.children} | |
<Footer /> | |
</div> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment