Skip to content

Simple product card component with state initializer + function child pattern deployed on NPM

License

Notifications You must be signed in to change notification settings

matiasagbenitez/mb-product-card

Repository files navigation

mab-product-card

Ejemplo

import {
  ProductCard,
  ProductImage,
  ProductTitle,
  ProductButtons,
} from 'mab-product-card';

<ProductCard
  product={product}
  initialValues={{
    count: 4,
    maxCount: 10,
  }}
>
  {({ count, maxCount, increaseBy, isMaxCountReached, reset }) => (
    <>
      <ProductImage />
      <ProductTitle />
      <ProductButtons />
    </>
  )}
</ProductCard>

About

Simple product card component with state initializer + function child pattern deployed on NPM

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published