1.0.0-rc • Published 3 years ago

fz-product-card v1.0.0-rc

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

DO-Product-Card

Testing NPM package deployment

Fausto Zaruma

Example

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