Download react-crypto-tracker/src/App.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 698 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-crypto-tracker/src/App.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-crypto-tracker/src/App.js
-
curl -L -o App.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-crypto-tracker/src/App.js
698 Bytes
| import { makeStyles } from "@material-ui/core"; | |
| import Homepage from "./Pages/HomePage"; | |
| import "./App.css"; | |
| import { BrowserRouter, 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 ( | |
| <BrowserRouter> | |
| <div className={classes.App}> | |
| <Header /> | |
| <Route path="/" component={Homepage} exact /> | |
| <Route path="/coins/:id" component={CoinPage} exact /> | |
| </div> | |
| </BrowserRouter> | |
| ); | |
| } | |
| export default App; | |