23 lines
614 B
React
23 lines
614 B
React
![]() |
import React from 'react';
|
||
|
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
|
||
|
import Home from './components/Home';
|
||
|
import CreateStation from './components/CreateStation';
|
||
|
import JoinStation from './components/JoinStation';
|
||
|
import './App.css';
|
||
|
|
||
|
function App() {
|
||
|
return (
|
||
|
<div className="App">
|
||
|
<Router>
|
||
|
<Routes>
|
||
|
<Route path="/" element={<Home />} />
|
||
|
<Route path="/create-station" element={<CreateStation />} />
|
||
|
<Route path="/join-station" element={<JoinStation />} />
|
||
|
</Routes>
|
||
|
</Router>
|
||
|
</div>
|
||
|
);
|
||
|
}
|
||
|
|
||
|
export default App;
|