0.0.1 • Published 2 years ago
product-card-hook v0.0.1
EJEMPLO
<ProductCard
key={product.id}
product={ product }
initialValues={{
count: 4,
maxCount: 10
}}
>
{({ reset, count, isMaxCountReached, increaseBy}: ProductCardHandler)=> (
<>
<ProductImage/>
<ProductTitle/>
<ProductButtons/>
</>
)}
</ProductCard>
0.0.1
2 years ago