aboutsummaryrefslogtreecommitdiff
path: root/examples/react-file-system-router/pages
diff options
context:
space:
mode:
Diffstat (limited to 'examples/react-file-system-router/pages')
-rw-r--r--examples/react-file-system-router/pages/index.tsx17
-rw-r--r--examples/react-file-system-router/pages/one.tsx12
-rw-r--r--examples/react-file-system-router/pages/two.tsx12
3 files changed, 41 insertions, 0 deletions
diff --git a/examples/react-file-system-router/pages/index.tsx b/examples/react-file-system-router/pages/index.tsx
new file mode 100644
index 000000000..b2d9e735e
--- /dev/null
+++ b/examples/react-file-system-router/pages/index.tsx
@@ -0,0 +1,17 @@
+// reachable from http://localhost:3000/
+
+export default () => (
+ <html>
+ <head>
+ <title>index</title>
+ </head>
+ <body>
+ <h1>
+ <a href="/one" >one</a>
+ </h1>
+ <h1>
+ <a href="/two" >two</a>
+ </h1>
+ </body>
+ </html>
+) \ No newline at end of file
diff --git a/examples/react-file-system-router/pages/one.tsx b/examples/react-file-system-router/pages/one.tsx
new file mode 100644
index 000000000..68c9fb4b9
--- /dev/null
+++ b/examples/react-file-system-router/pages/one.tsx
@@ -0,0 +1,12 @@
+// reachable from http://localhost:3000/one
+
+export default () => (
+ <html>
+ <head>
+ <title>one</title>
+ </head>
+ <body>
+ <p>one</p>
+ </body>
+ </html>
+) \ No newline at end of file
diff --git a/examples/react-file-system-router/pages/two.tsx b/examples/react-file-system-router/pages/two.tsx
new file mode 100644
index 000000000..09be9fa5c
--- /dev/null
+++ b/examples/react-file-system-router/pages/two.tsx
@@ -0,0 +1,12 @@
+// reachable from http://localhost:3000/two
+
+export default () => (
+ <html>
+ <head>
+ <title>two</title>
+ </head>
+ <body>
+ <p>two</p>
+ </body>
+ </html>
+) \ No newline at end of file