Docs
Reference
Functions
useCart

useCart

The useCart function is a React hook that returns cart data.

Usage

Use useCart hook can be used in any pages/sections.

import { useCart } from "builderoo";
 
const { items } = useCart()

Return Values

NameTypeDescription
itemsCartItem[]