Spaces:
Running
Running
Download src/components/ProductGrid.jsx from Abanee/reactshop-bazaar: direct link, hf CLI and curl.
- Browser
- Download file 403 Bytes
-
https://huggingface.co/spaces/Abanee/reactshop-bazaar/resolve/main/src/components/ProductGrid.jsx
- Command line
-
hf download hf://spaces/Abanee/reactshop-bazaar/src/components/ProductGrid.jsx
-
curl -L -o ProductGrid.jsx https://huggingface.co/spaces/Abanee/reactshop-bazaar/resolve/main/src/components/ProductGrid.jsx
403 Bytes
| import React from 'react' | |
| import ProductCard from './ProductCard' | |
| const ProductGrid = ({ products, onAddToCart }) => { | |
| return ( | |
| <div className="row g-4"> | |
| {products.map(product => ( | |
| <div key={product.id} className="col-md-6 col-lg-4 col-xl-3"> | |
| <ProductCard product={product} onAddToCart={onAddToCart} /> | |
| </div> | |
| ))} | |
| </div> | |
| ) | |
| } | |
| export default ProductGrid |