From 5db15b6ec7cd41cc15214f4448b064f4dd11f974 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Fri, 20 Aug 2021 13:17:57 -0700 Subject: demos -> examples Former-commit-id: 19a5d395bd41b0a0b854cdf749eb96149f91cbe1 --- examples/hello-next/pages/posts/[id].tsx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 examples/hello-next/pages/posts/[id].tsx (limited to 'examples/hello-next/pages/posts') diff --git a/examples/hello-next/pages/posts/[id].tsx b/examples/hello-next/pages/posts/[id].tsx new file mode 100644 index 000000000..48413669c --- /dev/null +++ b/examples/hello-next/pages/posts/[id].tsx @@ -0,0 +1,19 @@ +import { useRouter } from "next/router"; +import Link from "next/link"; + +export default function Post({}) { + const router = useRouter(); + + return ( +
+

Post: {router.query.id}

+ +
+ ); +} -- cgit v1.2.3