-
Notifications
You must be signed in to change notification settings - Fork 255
Expand file tree
/
Copy pathApp.js
More file actions
34 lines (28 loc) · 758 Bytes
/
App.js
File metadata and controls
34 lines (28 loc) · 758 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
25
26
27
28
29
30
31
32
33
34
import { makeStyles } from "@material-ui/core";
import Homepage from "./Pages/HomePage";
import "./App.css";
import { BrowserRouter,Routes, Route } from "react-router-dom";
import CoinPage from "./Pages/CoinPage";
import Header from "./components/Header";
const useStyles = makeStyles(() => ({
App: {
backgroundColor: "#14161a",
color: "white",
minHeight: "100vh",
},
}));
function App() {
const classes = useStyles();
return (
<div className={classes.App}>
<Header />
<BrowserRouter>
<Routes>
<Route path="/" component={Homepage} exact />
<Route path="/coins/:id" component={CoinPage} exact />
</Routes>
</BrowserRouter>
</div>
);
}
export default App;