Skip to content

Instantly share code, notes, and snippets.

@vlpt-playground
Created April 7, 2017 18:42
Show Gist options
  • Save vlpt-playground/c0a96877e9a0581d3d758ad09793b940 to your computer and use it in GitHub Desktop.
Save vlpt-playground/c0a96877e9a0581d3d758ad09793b940 to your computer and use it in GitHub Desktop.
import Link from 'next/link';
const linkStyle = {
marginRight: '1rem'
}
const Header = () => {
return (
<div>
<Link href="/"><a style={linkStyle}>홈</a></Link>
<Link href="/about"><a style={linkStyle}>소개</a></Link>
<Link prefetch href="/ssr-test"><a style={linkStyle}>SSR 테스트</a></Link>
</div>
);
};
export default Header;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment