shopping-cart-mini-app-v2
v1.2.3
Published
Sample Shopping Cart List Mini-app.
Downloads
2
Readme
Shopping Cart Mini App
Sample Shopping Cart List Mini-app.
Mini App
Changelogs
1.2.3 Updated docs
1.2.2 Added data load on mini app
1.2.1 Added types to the payloads
1.2.0 Updated redux immutability
1.1.1 Updated index files
1.1.0 Project dependency setup
1.0.0 Project initialization
Testing the component
npm run storybook
Installation
npm i shopping-cart-mini-app
Usage
import {ShoppingCart} from 'shopping-cart-mini-app'
<ShoppingCart dataLoad={dataLoad} dataIn={dataIn} dataOut={dataOut}/>
Types
{
dataLoad: {
products: {
id: number;
title: string;
price: number;
qty: number;
image: string;
total: number;
}[],
},
dataIn: {
currency: string,
containerStyle: CSSProperties,
},
dataOut: (arg0: any) => void,
}
Peer Dependecies
"react": "^17.0.2",
"react-dom": "^17.0.2"