Skip to content

Instantly share code, notes, and snippets.

@velopert
Last active January 14, 2017 14:26
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 velopert/801ed97a7c3f29e39cac8f5e3b234d2b to your computer and use it in GitHub Desktop.
Save velopert/801ed97a7c3f29e39cac8f5e3b234d2b to your computer and use it in GitHub Desktop.
import React from 'react';
import { Link } from 'react-router';
import './Header.css';
const MenuItem = ({active, children, to}) => (
<Link to={to} className="menu-item">
{children}
</Link>
)
const Header = () => {
return (
<div>
<div className="logo">
velopert
</div>
<div className="menu">
<MenuItem to={'/'}>홈</MenuItem>
<MenuItem to={'/about'}>소개</MenuItem>
<MenuItem to={'/post'}>포스트</MenuItem>
</div>
</div>
);
};
export default Header;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment