1.0.0-rc • Published 2 years ago
jz-product-card v1.0.0-rc
Ejemplo
import { ProductCard, ProductImage, ProductTitle, ProductButtons } from 'js-product-card'
<ProductCard
key={product.id}
product={product}
initialValues={{
count: 2,
maxCount: 10
}}
>
{
({ reset, increaseBy, count, isMaxCountReached, maxCount }) => (
<>
<ProductImage />
<ProductTitle />
<ProductButtons />
</>
)
}
</ProductCard>