Download Portfolio/src/App.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.37 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/Portfolio/src/App.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/Portfolio/src/App.js
-
curl -L -o App.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/Portfolio/src/App.js
1.37 kB
| import React, { useState, useEffect } from "react"; | |
| import Preloader from "../src/components/Pre"; | |
| import Navbar from "./components/Navbar"; | |
| import Home from "./components/Home/Home"; | |
| import About from "./components/About/About"; | |
| import Projects from "./components/Projects/Projects"; | |
| import Footer from "./components/Footer"; | |
| import Resume from "./components/Resume/ResumeNew"; | |
| import { | |
| BrowserRouter as Router, | |
| Route, | |
| Routes, | |
| Navigate | |
| } from "react-router-dom"; | |
| import ScrollToTop from "./components/ScrollToTop"; | |
| import "./style.css"; | |
| import "./App.css"; | |
| import "bootstrap/dist/css/bootstrap.min.css"; | |
| function App() { | |
| const [load, upadateLoad] = useState(true); | |
| useEffect(() => { | |
| const timer = setTimeout(() => { | |
| upadateLoad(false); | |
| }, 1200); | |
| return () => clearTimeout(timer); | |
| }, []); | |
| return ( | |
| <Router> | |
| <Preloader load={load} /> | |
| <div className="App" id={load ? "no-scroll" : "scroll"}> | |
| <Navbar /> | |
| <ScrollToTop /> | |
| <Routes> | |
| <Route path="/" element={<Home />} /> | |
| <Route path="/project" element={<Projects />} /> | |
| <Route path="/about" element={<About />} /> | |
| <Route path="/resume" element={<Resume />} /> | |
| <Route path="*" element={<Navigate to="/"/>} /> | |
| </Routes> | |
| <Footer /> | |
| </div> | |
| </Router> | |
| ); | |
| } | |
| export default App; | |