0.0.2 • Published 2 years ago
jp-product-cards v0.0.2
Ejemplo
import {
ProductCard,
ProductImage,
ProductTitle,
ProductButtons
} from 'jp-product-card'
<ProductCard
product={product}
initialValues={{
count: 4,
maxCount: 10
}}
>
{
({reset, isMaxCountReached, maxCount, increaseBy, count}) => (
<>
<ProductImage />
<ProductTitle />
<ProductButtons />
</>
)
}
</ProductCard>