parent
8c77a26627
commit
b351edfa20
4 changed files with 29 additions and 6 deletions
@ -0,0 +1,15 @@ |
||||
import Link from 'next/link'; |
||||
|
||||
const Header = () => ( |
||||
<div> |
||||
<Link href="/"> |
||||
<a title="Homepage">Home</a> |
||||
</Link> |
||||
| |
||||
<Link href="/about"> |
||||
<a title="About Page">About Page</a> |
||||
</Link> |
||||
</div> |
||||
); |
||||
|
||||
export default Header; |
@ -1,9 +1,10 @@ |
||||
import React from 'react'; |
||||
import Link from 'next/link'; |
||||
import Header from '../components/header'; |
||||
|
||||
export default function About() { |
||||
return ( |
||||
<div> |
||||
<Header /> |
||||
<p>This is the about page</p> |
||||
</div> |
||||
); |
||||
|
@ -0,0 +1,10 @@ |
||||
import Header from '../components/header'; |
||||
|
||||
export const Home = (props) => ( |
||||
<div> |
||||
<Header /> |
||||
<p>Hello Next.js</p> |
||||
</div> |
||||
); |
||||
|
||||
export default Home; |
Loading…
Reference in new issue