1.0.0-rc • Published 2 years ago

we-product-card v1.0.0-rc

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

we-product-card

RYD

Example:

import { ProductCard, ProductButtons, ProductImage, ProductTitle } from '../.';
      <ProductCard
        product={product}
        initialValues={{
          count: 1,
          maxCount: 13,
        }}
      >

        {({
          count,
          maxCount,
          reset,
          increaseBy,
    -      isMaxCountReached,
          product,
        }) => (
          <>
            <ProductImage />
            <ProductTitle />
            <ProductButtons />
          </>
        )}
      </ProductCard>