A faster to integrate and easy to maintain cart plugin for your website.
To install the package, use npm or yarn:
npm install quick-cart
# or
yarn add quick-cart
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.
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.
This project is licensed under the MIT License - see the LICENSE file for details.