ToqYang / sy-product-card

This is a test of a own package to NPM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React NPM module

This is a test module to deployment

Example

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

About

This is a test of a own package to NPM

License:MIT License


Languages

Language:TypeScript 84.6%Language:CSS 10.3%Language:HTML 2.7%Language:JavaScript 2.4%