1.0.0-rc • Published 1 year ago
jonl-product-card v1.0.0-rc
JONL-Product-Card
This is a POC for deploying a React component to NPM
Oscar Lagatta
Sample
import { ProductCard, ProductImage, ProductTitle, ProductButtons } from 'jonl-product-card'
<ProductCard
product={product}
initialValues={{
count: 4,
maxCount: 10,
}}
>
{({ reset, isMaxCountReached, count, maxCount, increaseBy }) => (
<>
<ProductImage />
<ProductTitle />
<ProductButtons />
</>
)}
</ProductCard>