Download AmazonClone/src/App.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 685 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/AmazonClone/src/App.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/AmazonClone/src/App.jsx
-
curl -L -o App.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/AmazonClone/src/App.jsx
685 Bytes
| import "./App.css"; | |
| import Footer from "./Compoenents/Footer"; | |
| import Header from "./Compoenents/Header"; | |
| import { Routes, Route } from "react-router-dom"; | |
| import Home from "./Pages/Home"; | |
| import CartPage from "./Pages/CartPage"; | |
| import ProductPaga from "./Pages/ProductPaga"; | |
| import Context from "./ContextApi/Context"; | |
| function App() { | |
| return ( | |
| <> | |
| <Context> | |
| <Header /> | |
| <Routes> | |
| <Route path="/" index element={<Home />}/> | |
| <Route path="/CartPage" element={<CartPage />}/> | |
| <Route path={`/ProductPaga/:id`} element={<ProductPaga />}/> | |
| </Routes> | |
| <Footer /> | |
| </Context> | |
| </> | |
| ); | |
| } | |
| export default App; | |
| CartPage |