jz-product-card
v1.0.0-rc
Published
``` import { ProductCard, ProductImage, ProductTitle, ProductButtons } from 'js-product-card'
Downloads
3
Maintainers
Readme
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>