-
-
Save velopert/7e6612133fd211c45e9658e682ceefea 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
import React from 'react'; | |
import './Header.css'; | |
const MenuItem = ({active, children, to}) => ( | |
<div className="menu-item"> | |
{children} | |
</div> | |
) | |
const Header = () => { | |
return ( | |
<div> | |
<div className="logo"> | |
velopert | |
</div> | |
<div className="menu"> | |
<MenuItem>홈</MenuItem> | |
<MenuItem>소개</MenuItem> | |
<MenuItem>포스트</MenuItem> | |
</div> | |
</div> | |
); | |
}; | |
export default Header; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment