-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathApp.js
More file actions
24 lines (20 loc) · 718 Bytes
/
App.js
File metadata and controls
24 lines (20 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
import HomePage from "./components/HomePage";
import AllBeers from "./components/AllBeers";
import SingleBeer from "./components/SingleBeer";
import RandomBeer from "./components/RandomBeer";
import NewBeer from "./components/NewBeer";
function App() {
return (
<Router>
<Routes>
<Route path="/" element={<HomePage />} />
<Route path="/beers" element={<AllBeers />} />
<Route path="/beers/:beerId" element={<SingleBeer />} />
<Route path="/random-beer" element={<RandomBeer />} />
<Route path="/new-beer" element={<NewBeer />} />
</Routes>
</Router>
);
}
export default App;