1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-30 22:08:02 +00:00

next/linkを使う

This commit is contained in:
Nebel 2019-04-23 16:49:16 +09:00
parent 5a8fe9e9e8
commit f054071602
2 changed files with 8 additions and 2 deletions

View file

@ -1,9 +1,12 @@
import React from "react";
import Link from "next/link";
const About: React.FC = () => (
<article>
<h1>About</h1>
<a href="/">Back to Home</a>
<Link href="/">
<a>Back to Home</a>
</Link>
</article>
);
export default About;

View file

@ -1,9 +1,12 @@
import React from "react";
import Link from "next/link";
const Home: React.FC = () => (
<article>
<h1>Hello Next.js</h1>
<a href="/about">/about</a>
<Link href="/about">
<a>/about</a>
</Link>
</article>
);
export default Home;