pr-product-cart
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-rc • Public • Published

PR_product_cart

This is a test NPM package deployed just for learning.

PRC

Example

import {ProductCart, ProductImage, ProductTitle, ProductButtons} from 'pr-product-card'

<ProductCart
                product={product}
                initialValues={{
                    count: 4,
                    maxCount: 10
                }}
            >

                {
                    ({ count, increaseBy, isMaxCountReached, maxCount, reset }) => (
                        <>
                            <ProductImage />
                            <ProductTitle />
                            <ProductButtons />
                        </>
                    )
                }
            </ProductCart>

Package Sidebar

Install

npm i pr-product-cart

Weekly Downloads

0

Version

1.0.0-rc

License

MIT

Unpacked Size

156 kB

Total Files

29

Last publish

Collaborators

  • juncode