corda-checkers/webapp/src/App.js

29 lines
601 B
JavaScript
Raw Normal View History

2023-08-13 15:31:47 +02:00
import './App.css';
import React from 'react'
import {
BrowserRouter,
2023-10-14 10:43:44 +02:00
Routes,
Route,
} from "react-router-dom"
import Header from "./components/Header"
import Leaderboard from "./components/Leaderboard"
import Game from "./components/Game"
function App() {
2023-08-13 15:31:47 +02:00
2023-10-14 10:43:44 +02:00
return <div className="App">
<BrowserRouter>
<Header/>
<div className="Container">
<Routes>
<Route path="/leaderboard" element={<Leaderboard/>} />
<Route path="/game" element={<Game/>} />
</Routes>
</div>
2023-10-14 10:43:44 +02:00
</BrowserRouter>
2023-08-13 15:31:47 +02:00
</div>
}
export default App;