l-sell-card
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

###Implementation

##Exmple:

const ShoppingPage = () => {
 const MyProdcut = listOfProducts[0];

 return (
   <div>
     <h1>shoping store</h1>
     <hr />
     <ProductCard
       product={MyProdcut}
       key={MyProdcut.id}
       initialValues={{ state: 5, maxCount: 10 }}
     >
       {/* esta arrowFunction es el children que tengo en el ProductCard, o sea cualquier argumento que envío alla, lo recibo aca. */}
       {({
         handleReset,
         count,
         handleIncrease,
         isMaxCountReached,
         maxCount,
         product,
       }) => (
         <>
           <ProductImage />
           <ProductTitle />
           <ProductButtons />
         </>
       )}
     </ProductCard>
   </div>
 );
};
export default ShoppingPage;

Package Sidebar

Install

npm i l-sell-card

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

149 kB

Total Files

29

Last publish

Collaborators

  • lolo-vignolo