2023-08-13 15:31:47 +02:00
|
|
|
import './App.css';
|
2023-10-11 10:36:29 +02:00
|
|
|
import Leaderboard from "./Leaderboard";
|
2023-10-11 13:16:27 +02:00
|
|
|
import React from 'react';
|
|
|
|
import {
|
|
|
|
BrowserRouter,
|
|
|
|
Routes, //replaces "Switch" used till v5
|
|
|
|
Route,
|
|
|
|
} from "react-router-dom";
|
|
|
|
import Header from "./Header"
|
2023-08-13 15:31:47 +02:00
|
|
|
|
|
|
|
function App() {
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div className="App">
|
2023-10-11 13:16:27 +02:00
|
|
|
<BrowserRouter>
|
|
|
|
<Header/>
|
|
|
|
|
|
|
|
<div className="Container">
|
|
|
|
<Routes>
|
|
|
|
<Route path="/leaderboard" element={<Leaderboard/>} />
|
|
|
|
</Routes>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</BrowserRouter>
|
2023-08-13 15:31:47 +02:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default App;
|