import { ProductCard } from '../src/components/ProductCard';
import { ProductButtons, ProductImage, ProductTitle } from '../src/components/';
onst App = () => {
return (
<div>
<h1>Shopping Page</h1>
<hr />
<div
style={{
display: 'flex',
flexDirection: 'row',
flexWrap: 'wrap',
}}
>
<ProductCard
product={product}
initialValues={{
count: 4,
maxCount: 10,
}}
>
{({ reset, count, isMaxReached, onIncreaseBy, maxCount }) => (
<>
<ProductImage />
<ProductTitle />
<ProductButtons />
</>
)}
</ProductCard>
</div>
</div>
);
};
-
Notifications
You must be signed in to change notification settings - Fork 0
test project of NPM and React
License
juancamontero/jcm-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
test project of NPM and React
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published