Created
August 26, 2016 15:03
-
-
Save Deiru2k/ba244638aeb936d6ba26091dc0edb409 to your computer and use it in GitHub Desktop.
Footer / Header
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 MyFooter from 'components/MyFooter'; | |
export default ({ children }) => ( | |
<section> | |
{this.props.children} | |
<MyFooter /> | |
</section> | |
) |
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 { Router, Route } from 'react-router'; | |
import Root from 'containers/Root'; | |
export default ( | |
<Router> | |
<Route component={Root}> | |
<Route path="/" component={...} /> | |
<Route path="/login" component={...} /> | |
</Route> | |
</Router> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment