Skip to content

Commit 59f444b

Browse files
committed
Step 14
1 parent ae46af6 commit 59f444b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

pages/country/[name].js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import Link from "next/link";
2+
import { useRouter } from "next/router";
3+
4+
export default function Country() {
5+
const router = useRouter();
6+
const { name } = router.query;
7+
return (
8+
<>
9+
<h1 style={{ textAlign: "center" }}>{name}</h1>
10+
<Link href="/">
11+
<a>Go Back</a>
12+
</Link>
13+
</>
14+
);
15+
}

0 commit comments

Comments
 (0)