aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/client/App.tsx
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-12-06 18:01:31 +0900
committernsfisis <nsfisis@gmail.com>2025-12-06 18:01:31 +0900
commit17ba3c603e4c522ccca282f6786fff2e0b3f4f6e (patch)
tree9cc28e1dcb0be2a89ada63de2717f061e66aa5cd /src/client/App.tsx
parent4f924d8004b6273230b23dcfe73bacbf114e4fac (diff)
downloadkioku-17ba3c603e4c522ccca282f6786fff2e0b3f4f6e.tar.gz
kioku-17ba3c603e4c522ccca282f6786fff2e0b3f4f6e.tar.zst
kioku-17ba3c603e4c522ccca282f6786fff2e0b3f4f6e.zip
feat(client): setup routing with wouter
Add wouter router with pages for home, login, register, and 404. Include tests for all routes using @testing-library/react. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'src/client/App.tsx')
-rw-r--r--src/client/App.tsx13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/client/App.tsx b/src/client/App.tsx
index fa42302..01d843a 100644
--- a/src/client/App.tsx
+++ b/src/client/App.tsx
@@ -1,8 +1,13 @@
+import { Route, Switch } from "wouter";
+import { HomePage, LoginPage, NotFoundPage, RegisterPage } from "./pages";
+
export function App() {
return (
- <div>
- <h1>Kioku</h1>
- <p>Spaced repetition learning app</p>
- </div>
+ <Switch>
+ <Route path="/" component={HomePage} />
+ <Route path="/login" component={LoginPage} />
+ <Route path="/register" component={RegisterPage} />
+ <Route component={NotFoundPage} />
+ </Switch>
);
}