0.0.1 • Published 2 years ago

rdch-product-card v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

RDCH-Product-Card

Este es un paquete para pruebas en NPM.org

Instalación

Ejemplo:

import { ProductCard, ProductImage, ProductTitle, ProductButtons } from 'rdch-product-card'
<ProductCard
    product={ product }
    initialValues={{
        count: 4,
        // maxCount: 10
    }}
>
    {
        ({count, reset, isMaxCountReached, maxCount, increaseBy}) => (
            <>
                <ProductImage />
                <ProductTitle />
                <ProductButtons />
           </>
        )
    }
</ProductCard>