luiswz-productcard
v0.1.1
Published
Module testing using a react component
Downloads
1
Readme
Product Card Module
Module testing using a react component
Examples
import { ProductCard } from 'luiswz-productcard';
<ProductCard
initialValues={{ count: 4, maxCount: 10 }}
product={product}
>
{({ reset, handleCount, isMaxCountReached, count, maxCount }) => (
<>
<ProductCard.Image />
<ProductCard.Description />
<ProductCard.Buttons />
</>
)}
</ProductCard>