generated from lucien/actix-react-template
Recollage au main
This commit is contained in:
parent
358681da38
commit
5d156416c9
2 changed files with 14 additions and 0 deletions
14
front/src/main.tsx
Normal file
14
front/src/main.tsx
Normal 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>,
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue