product-card-hook
v0.0.1
Published
EJEMPLO ``` <ProductCard key={product.id} product={ product } initialValues={{ count: 4, maxCount: 10 }} > {({ reset, count, isMaxCoun
Downloads
4
Maintainers
Readme
EJEMPLO
<ProductCard
key={product.id}
product={ product }
initialValues={{
count: 4,
maxCount: 10
}}
>
{({ reset, count, isMaxCountReached, increaseBy}: ProductCardHandler)=> (
<>
<ProductImage/>
<ProductTitle/>
<ProductButtons/>
</>
)}
</ProductCard>