Skip to content

Instantly share code, notes, and snippets.

@mohandere
Last active May 12, 2019 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mohandere/6bf76ad1cdb7eb2396c9506f945a98df to your computer and use it in GitHub Desktop.
Save mohandere/6bf76ad1cdb7eb2396c9506f945a98df to your computer and use it in GitHub Desktop.
Higher-Order Component
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