Spaces:
Running
Running
Download src/App.js from gaurangu/data-alchemy-pro: direct link, hf CLI and curl.
- Browser
- Download file 812 Bytes
-
https://huggingface.co/spaces/gaurangu/data-alchemy-pro/resolve/main/src/App.js
- Command line
-
hf download hf://spaces/gaurangu/data-alchemy-pro/src/App.js
-
curl -L -o App.js https://huggingface.co/spaces/gaurangu/data-alchemy-pro/resolve/main/src/App.js
812 Bytes
| import { BrowserRouter, Routes, Route } from 'react-router-dom'; | |
| import { useEffect } from 'react'; | |
| import Home from './pages/Home'; | |
| import Documentation from './pages/Documentation'; | |
| import Navbar from './components/Navbar'; | |
| import Footer from './components/Footer'; | |
| import './App.css'; | |
| function App() { | |
| useEffect(() => { | |
| const feather = require('feather-icons'); | |
| feather.replace(); | |
| }, []); | |
| return ( | |
| <BrowserRouter> | |
| <div className="flex flex-col min-h-screen bg-gray-50"> | |
| <Navbar /> | |
| <main className="flex-grow"> | |
| <Routes> | |
| <Route path="/" element={<Home />} /> | |
| <Route path="/documentation" element={<Documentation />} /> | |
| </Routes> | |
| </main> | |
| <Footer /> | |
| </div> | |
| </BrowserRouter> | |
| ); | |
| } | |
| export default App; |