Created
August 22, 2020 15:06
-
-
Save iamsaief/64ac0bd399e828e79edb116088eeb754 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function App() { | |
const products = [ | |
{ name: "Photoshop", price: "$4.00" }, | |
{ name: "Figma", price: "$5.00" }, | |
{ name: "Sketch", price: "$6.00" }, | |
{ name: "After Efects", price: "$26.00" }, | |
{ name: "Premier pro", price: "$96.00" }, | |
]; | |
return ( | |
<div> | |
{products.map((item) => ( | |
<Products product={item} /> | |
))} | |
</div> | |
); | |
} | |
function Products(props) { | |
return ( | |
<div> | |
<h3> | |
Name: {props.product.name}, Price: {props.product.price} | |
</h3> | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment