jp-product-cards
v0.0.2
Published
``` import { ProductCard, ProductImage, ProductTitle, ProductButtons } from 'jp-product-card' ```
Downloads
2
Maintainers
Readme
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>