quick-cart

1.1.3 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i quick-cart

Weekly Downloads

6

Version

1.1.3

License

MIT

Unpacked Size

51.5 kB

Total Files

5

Last publish

Collaborators

  • mickeymaruf