0.0.1 • Published 2 years ago

jota-product-card v0.0.1

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

Juan Jose Collantes

Ejemplo

import { ProductCard, ProductImage, ProductsButtons, ProductTitle, } from '../.';
<ProductCard
        key={product.id}
        product={product}
        
        //Asigamos un objeto con el count y maxCount al initialValues
        initialValues={{
          count: 4,
          //maxCount:10
        }}
        >

          {
            ({reset,isMaxCountReached,count,maxCount})=> (<>
            <ProductImage />
          <ProductTitle />
          <ProductsButtons /> 
          </>)
          }
          
</ProductCard>