1.0.42 • Published 6 months ago

reusable-cart-component v1.0.42

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Reusable-Cart-Component

This is a reusable cart component you can install to an e-commerce react application to display cart items. it includes all functionalities of a cart component: 1. Viewing items added to cart 2. Adding or reducing the quantity of an item 3. Removing an item from the cart 4. Clearing the cart. 5. Displaying the total amount of all items in Ksh 6. Displaying the amount per item based on the quantity

NPM JavaScript Style Guide

How to Install

npm install --save reusable-cart-component

Usage

  • In the jsx component you want to display the cart items you need to:
  1. Install the components in your main folder
  2. Ensure the component is visible in your package.json file
  3. Import the component as shown below
  4. Instantiate the component
  5. Provide the cart items (the items selected by a user from the main products page)
  6. The component will do the rest 🎊
import MyComponent from 'reusable-cart-component'
import 'reusable-cart-component/dist/index.css'


const Cart = () => {
  return (
    <div>
      <ReusableCartComponent items={items} cartId={cartId}  />  
    </div>
  )
}

export default Cart

Requirements

Node version >=10

License

MIT ©

Github

kristinenyaga

Reach out

  • For any queries,suggestions reach out to: nyagakristine@gmail.com angieschacha@gmail.com emutheu1998@gmail.com
1.0.42

6 months ago

1.0.41

6 months ago

1.0.40

6 months ago

1.0.39

6 months ago

1.0.37

6 months ago

1.0.36

6 months ago

1.0.35

6 months ago

1.0.34

6 months ago

1.0.33

6 months ago

1.0.32

6 months ago

1.0.31

6 months ago

1.0.30

6 months ago

1.0.29

6 months ago

1.0.28

6 months ago

1.0.27

6 months ago

1.0.25

6 months ago

1.0.24

6 months ago

1.0.23

6 months ago

1.0.22

6 months ago

1.0.21

6 months ago

1.0.20

6 months ago

1.0.19

6 months ago

1.0.18

6 months ago

1.0.17

6 months ago

1.0.16

6 months ago

1.0.15

6 months ago

1.0.14

6 months ago

1.0.13

6 months ago

1.0.12

6 months ago

1.0.11

6 months ago

1.0.10

6 months ago

1.0.9

6 months ago

1.0.8

6 months ago

1.0.7

6 months ago

1.0.6

6 months ago

1.0.5

6 months ago

1.0.4

6 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago