1.0.0-rc • Published 1 year ago
pc-product-card-react-ts v1.0.0-rc
PC-Prudct-Card
Este es un paquete de pruebas de despliegue en NPM
Paul Ccuno
Ejemplo
import {
ProductButtons,
ProductCard,
ProductImage,
ProductTitle,
} from '../components';
<ProductCard
key={product.id}
product={product}
initialValues={{
count: 4,
// maxCount: 10,
}}
>
{({ count, isMaxCountReached, maxCount, reset, increaseBy }) => (
<>
<ProductImage />
<ProductTitle />
<ProductButtons />
</>
)}
</ProductCard>