MCPcopy Create free account
hub / github.com/YashMarmat/FullStack_Ecommerce_App / Product

Function Product

frontend/src/components/Product.js:6–28  ·  view source on GitHub ↗
({ product })

Source from the content-addressed store, hash-verified

4import React from 'react'
5
6function Product({ product }) {
7 return (
8 <div>
9 <Card className="mb-4 rounded">
10
11 <Card.Body>
12 <Link to={`/product/${product.id}`}>
13 <Card.Img variant="top" src={product.image} height="162" />
14 </Link>
15 <Link to={`/product/${product.id}`}>
16 <Card.Title as="div">
17 <strong>{product.name}</strong>
18 </Card.Title>
19 </Link>
20
21 <Card.Text as="h3">
22 ₹ {product.price}
23 </Card.Text>
24 </Card.Body>
25 </Card>
26 </div>
27 )
28}
29
30export default Product

Callers 1

Calls

no outgoing calls

Tested by 1