import {
ProductButtons,
ProductCard,
ProductImage,
ProductTitle,
} from './components';
<ProductCard
key={product.id}
product={product}
initialValues={{ count: 4, maxCount: 10 }}
>
{({ reset }) => (
<>
<ProductImage />
<ProductTitle />
<ProductButtons />
<button onClick={reset}>reset</button>
</>
)}
</ProductCard>;
hectoroleadev / hector-product-card Goto Github PK
View Code? Open in Web Editor NEWNPM package test
License: MIT License