0.0.2 • Published 2 years ago

hector-product-card v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Example

import {
  ProductButtons,
  ProductCard,
  ProductImage,
  ProductTitle,
} from './components';

<ProductCard
  key={product.id}
  product={product}
  initialValues={{ count: 4, maxCount: 10 }}
>
  {({ reset }) => (
    <>
      <ProductImage />
      <ProductTitle />
      <ProductButtons />

      <button onClick={reset}>reset</button>
    </>
  )}
</ProductCard>;
0.0.2

2 years ago

0.0.1

2 years ago