Recollage au main

This commit is contained in:
iMax 2024-12-05 22:15:23 +01:00
parent 358681da38
commit 5d156416c9
2 changed files with 14 additions and 0 deletions

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>,
)