0.0.2 • Published 2 years ago

stan-product-card v0.0.2

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

Stan-Product-Card

My first component deploy at NPM.

StanTheMackiar

Example

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