1.0.0-rc • Published 1 year ago

jdac-product-card v1.0.0-rc

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

JD1927-Product-Card

This is a React test package used for deployments at NPM.

Juan Aguirre

Example

import {
  ProductCard,
  ProductImage,
  ProductTitle,
  ProductButtons,
} from 'jdac-product-card';
<ProductCard
  key={`${product.title}-${product.id}`}
  initialValues={{
    count: 4,
    maxCount: 10
  }}
  product={product}>
  {
    ({ reset, count, isMaxCountReached, maxCount, increaseBy }) => (
      <>
        <ProductImage />
        <ProductTitle />
        <ProductButtons />
      </>
    )
  }
</ProductCard>
1.0.0-rc

1 year ago

0.0.1

1 year ago