1.1.3 • Published 11 months ago

quick-cart v1.1.3

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

Quick Cart

A faster to integrate and easy to maintain cart plugin for your website.

Installation

To install the package, use npm or yarn:

npm install quick-cart
# or
yarn add quick-cart

Usage

1. Wrap your application with CartProvider

Wrap your main application component with CartProvider to provide cart context to all components:

import React from "react";
import ReactDOM from "react-dom";
import { CartProvider } from "quick-cart";
import App from "./App";

ReactDOM.render(
  <React.StrictMode>
    <CartProvider apiKey="YOUR_PUBLIC_API_KEY">
      <App />
    </CartProvider>
  </React.StrictMode>,
  document.getElementById("root"),
);

Get your api key at https://quickkcart.vercel.app.

2. Use Products Component

Now just use the <Product /> component anywhere you want.

import Products from "quick-cart";

const Page = () => {
  return (
    <div>
      <Products />
    </div>
  );
};

export default Page;

Create an account on https://quickkcart.vercel.app, to get started with your products and payments.

License

This project is licensed under the MIT License - see the LICENSE file for details.

1.1.3

11 months ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago