1.0.0-rc • Published 2 years ago
ncs-product-card v1.0.0-rc
Do-Product-Card
This is a deploy test package on NPM
Nicolas Conde Salazar
Example
import { ProductButtons, ProductCard, ProductImage, ProductTitle } from 'ncs-product-card'
<ProductCard
key={ product.id }
product={ product }
initialValues={{
count: 4,
// maxCount: 10,
}}
>
{
({ count, maxCount, reset, increaseBy, isMaxCountReached }) => (
<>
<ProductImage />
<ProductTitle />
<ProductButtons />
</>
)
}
</ProductCard>