Game feature complete #7

Merged
linlkin merged 6 commits from game into main 2024-12-06 02:41:30 +00:00
2 changed files with 14 additions and 0 deletions
Showing only changes of commit 5d156416c9 - Show all commits

14
front/src/main.tsx Normal file
View file

@ -0,0 +1,14 @@
import { BrowserRouter, Route, Routes } from "react-router";
import { createRoot } from 'react-dom/client'
import MainPage from "./pages/MainPage.tsx";
import GamePage from "./pages/GamePage.tsx";
createRoot(document.getElementById('root')!).render(
<BrowserRouter>
<Routes>
<Route path="/" element={<MainPage />} />
<Route path="/game" element={<GamePage />} />
</Routes>
</BrowserRouter>,
)