caro5 / client /src /App.tsx
Pedro de Carvalho
Update game ui
0596153
Raw
History Blame Contribute Delete
466 Bytes
import { Routes, Route } from 'react-router-dom'
import Landing from './pages/Landing.tsx'
import LocalSetup from './pages/LocalSetup.tsx'
import Game from './pages/Game.tsx'
export default function App() {
return (
<Routes>
<Route path="/" element={<Landing />} />
<Route path="/local-setup" element={<LocalSetup />} />
<Route path="/play/:roomId" element={<Game />} />
<Route path="*" element={<LocalSetup />} />
</Routes>
)
}