From aa8854adcb9449d2a961c5e4314a223f6e7bcc04 Mon Sep 17 00:00:00 2001
From: Michael Hunteman <michael@huntm.net>
Date: Tue, 13 Feb 2024 20:38:17 -0600
Subject: Initial commit

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

(limited to 'src/main.tsx')

diff --git a/src/main.tsx b/src/main.tsx
new file mode 100644
index 0000000..5364a01
--- /dev/null
+++ b/src/main.tsx
@@ -0,0 +1,37 @@
+import React from 'react';
+import ReactDOM from 'react-dom/client';
+import { createBrowserRouter, RouterProvider } from 'react-router-dom';
+
+import App from './App';
+import Bar from './components/Bar';
+import Home from './components/Home';
+import Schedule from './components/Schedule';
+import Registry from './components/Registry';
+import Rsvp from './components/Rsvp';
+
+const router = createBrowserRouter([
+  {
+    path: "/",
+    element: <App />,
+    children: [
+      {
+        path: "schedule",
+        element: <Schedule />
+      },
+      {
+        path: "registry",
+        element: <Registry />
+      },
+      {
+        path: "rsvp",
+        element: <Rsvp />
+      }
+    ]
+  }
+]);
+
+ReactDOM.createRoot(document.getElementById('root')).render(
+  <React.StrictMode>
+    <RouterProvider router={router} />
+  </React.StrictMode>
+);
-- 
cgit v1.2.3

