aboutsummaryrefslogtreecommitdiff
path: root/demos/hello-next/pages/second.tsx
diff options
context:
space:
mode:
authorGravatar Jack Hanford <jackhanford@gmail.com> 2021-08-17 21:04:52 -0700
committerGravatar Jack Hanford <jackhanford@gmail.com> 2021-08-17 21:04:52 -0700
commit28cc70cf50398b4b9b6e9ab027b7d965406fba2d (patch)
treeeb3de8f7687d3011672536b31d0c44557c282cd3 /demos/hello-next/pages/second.tsx
parentbbe0a3d58ccb420fe94b8d59934b2b54ed71f295 (diff)
downloadbun-28cc70cf50398b4b9b6e9ab027b7d965406fba2d.tar.gz
bun-28cc70cf50398b4b9b6e9ab027b7d965406fba2d.tar.zst
bun-28cc70cf50398b4b9b6e9ab027b7d965406fba2d.zip
add some routing methods across hello-next
Former-commit-id: a1b7b13b54d535743e1fc15287f27fd1b3198abc
Diffstat (limited to 'demos/hello-next/pages/second.tsx')
-rw-r--r--demos/hello-next/pages/second.tsx18
1 files changed, 18 insertions, 0 deletions
diff --git a/demos/hello-next/pages/second.tsx b/demos/hello-next/pages/second.tsx
new file mode 100644
index 000000000..ae5fd5ec8
--- /dev/null
+++ b/demos/hello-next/pages/second.tsx
@@ -0,0 +1,18 @@
+import Link from "next/link";
+
+export default function Second({}) {
+ return (
+ <div style={{ padding: 16 }}>
+ <h1>Second</h1>
+
+ <ul>
+ <li>
+ <a href="/">Root page</a>
+ </li>
+ <li>
+ <a href="/foo/bar/third">Third page</a>
+ </li>
+ </ul>
+ </div>
+ );
+}