From 70142a39acd769c858db7aa33d2d11b17483d765 Mon Sep 17 00:00:00 2001
From: Masaya Tojo <masaya@tojo.tokyo>
Date: Thu, 1 Aug 2024 00:41:28 +0900
Subject: React Router でトップページと会員登録ページにアクセスできるようにする
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/routes.tsx | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 src/routes.tsx

(limited to 'src/routes.tsx')

diff --git a/src/routes.tsx b/src/routes.tsx
new file mode 100644
index 0000000..8cac244
--- /dev/null
+++ b/src/routes.tsx
@@ -0,0 +1,8 @@
+import { createBrowserRouter } from 'react-router-dom';
+import { Top } from './Top.tsx';
+import { SignUp } from './SignUp.tsx';
+
+export const routes = createBrowserRouter([
+  { path: '/', element: <Top /> },
+  { path: '/sign-up', element: <SignUp /> }
+]);
-- 
cgit v1.2.3

