1.0.0-rc • Published 2 years ago
ns-product-card v1.0.0-rc
PAQUETE NELSON SOLORZANO
import {ProductCard, ProductImage, ProductTitle, ProductButtons} from 'ns-product-card'
<ProductCard
product={product}
initialValues={{
count: 4,
maxCount: 10,
}}
>
{({ reset, count, isMaxCountReached, maxCount, increaseBy }) => (
<>
<ProductImage />
<ProductTitle />
<ProductButtons />
</>
)}
</ProductCard>