Last active
May 12, 2019 14:53
-
-
Save mohandere/6bf76ad1cdb7eb2396c9506f945a98df to your computer and use it in GitHub Desktop.
Higher-Order Component
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
const ProductsList = (props) => { | |
let { data: products } = props; | |
return ( | |
<div> | |
<div> | |
<div> | |
<h2>Products</h2> | |
</div> | |
</div> | |
<div> | |
{products.map((product) => <ProductCard key={product.sku} {...product} />)} | |
</div> | |
</div> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment