mirror of
https://codeberg.org/andyscott/ExerciseTracker.git
synced 2024-11-13 06:30:47 -05:00
29 lines
649 B
JavaScript
29 lines
649 B
JavaScript
|
import "./App.css";
|
||
|
import React from "react";
|
||
|
import { BrowserRouter as Router, Route } from "react-router-dom";
|
||
|
import HomePage from "./pages/HomePage";
|
||
|
import CreatePage from "./pages/CreatePage";
|
||
|
import EditPage from "./pages/EditPage";
|
||
|
|
||
|
function App() {
|
||
|
return (
|
||
|
<div className="App">
|
||
|
<Router>
|
||
|
<div className="App-header">
|
||
|
<Route path="/" exact>
|
||
|
<HomePage />
|
||
|
</Route>
|
||
|
<Route path="/create">
|
||
|
<CreatePage />
|
||
|
</Route>
|
||
|
<Route path="/edit">
|
||
|
<EditPage />
|
||
|
</Route>
|
||
|
</div>
|
||
|
</Router>
|
||
|
</div>
|
||
|
);
|
||
|
}
|
||
|
|
||
|
export default App;
|