Last active
February 19, 2018 12:27
-
-
Save JulienHe/63abb3665b9f12e18198b898981464c0 to your computer and use it in GitHub Desktop.
Header.js for next-routes and Firebase function
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, { PureComponent } from 'react'; | |
import { Link } from 'src/routes'; | |
export class Header extends PureComponent { | |
render() { | |
return ( | |
<header> | |
<Link route='home' passHref> | |
<a>Home</a> | |
</Link> | |
<Link route='about' passHref> | |
<a>About</a> | |
</Link> | |
<Link route='blog' passHref> | |
<a>Blog</a> | |
</Link> | |
</header> | |
) | |
} | |
} | |
export default Header; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment