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>
-
Notifications
You must be signed in to change notification settings - Fork 0
Simple product card component with state initializer + function child pattern deployed on NPM
License
matiasagbenitez/mb-product-card
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Simple product card component with state initializer + function child pattern deployed on NPM
Topics
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published