Skip to content

Instantly share code, notes, and snippets.

@iamsaief
Created August 22, 2020 15:06
Show Gist options
  • Save iamsaief/64ac0bd399e828e79edb116088eeb754 to your computer and use it in GitHub Desktop.
Save iamsaief/64ac0bd399e828e79edb116088eeb754 to your computer and use it in GitHub Desktop.
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