Created
January 27, 2019 07:44
-
-
Save javedbaloch4/fa81ddc5e810cc564fb61d2733d7d11b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const product = DATA.map(function(product) { | |
return ( | |
<Col span={6} style={{ minHeight: "280px" }}> | |
<Card style={{ minHeight: "260px" }}> | |
<h2>{product.name}</h2> | |
<img src={product.img} alt={product.name} width={100} /> | |
<p> | |
<strong>{product.price}</strong> | |
</p> | |
<p>{product.isAvailable ? "Available" : "Out of Stock"}</p> | |
</Card> | |
</Col> | |
); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment