0.1.0 • Published 1 year ago

g0c4r-product-card v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

g0c4r-product-card

Este es un paquete de prueba para la creación de componentes de React.

Instalación

npm install g0c4r-product-card
yarn add g0c4r-product-card
import { ProductButtons, ProductCard, ProductImage, ProductTitle } from 'components';
 <ProductCard
      product={product}
      initialValues={{
        counter: 0,
        // maxCounter: 15,
      }}
    >
      {({ reset, increaseBy, isMaxCounterReached }) => {
        return (
          <>
            <ProductImage />
            <ProductTitle />
            <ProductButtons />
          </>
        );
      }}
</ProductCard>