0.0.2-rc • Published 5 months ago

mssr-product-card v0.0.2-rc

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

MS-Product-Card

This is a example of a React component library for NPM.

Example

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