1.0.0-rc • Published 2 years ago
ahv-product-card v1.0.0-rc
AHV-Product-Card
This is a test package in order to deploy to NPM.
Alberto Herrera Vargas
Example
import { ProductCard,ProductImage, ProductTitle, ProductButtons } from 'ahv-product-card'
<ProductCard
key={product.id}
product={product}
initialValues={{
count: 4,
// maxCount: 10,
}}
>
{({ count, isMaxCountReached, increaseBy, reset }) => (
<>
<ProductImage />
<ProductTitle />
<ProductButtons />
</>
)}
</ProductCard>