0.0.2 • Published 6 months ago

hector-product-card v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months 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

6 months ago

0.0.1

6 months ago