corda-checkers/webapp/src/App.js

30 lines
548 B
JavaScript
Raw Normal View History

2023-08-13 15:31:47 +02:00
import './App.css';
2023-10-11 10:36:29 +02:00
import Leaderboard from "./Leaderboard";
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">
<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;