// builderoo.dev

Docsbuilderoo.com
  • Introduction
  • Themes
  • Overview
    • Installation
    • Tutorial (15 minutes)
    • Overview
    • Layouts
    • Sections
      • Overview
      • Product
      • Collection
      • Cart
      • Login/Signup etc
      • Search
      • Custom Pages
    • theme.config.js
    • Objects
      • useApp
      • useCart
      • useAccount
      • useProps
      • useBlocks
      • usePagination
      • useSelectedVariant
      • useCartItemQuantity
      • useSearch
      • usePredictiveSearch
      • useProduct
      • useCollection
      • useCollectionList
      • useOrder
      • useOrderList
      • usePage 🚧
      • useArticle 🚧
      • useConfig
      • <Captcha>
      • <Image>
      • <Price> 🚧
      • <Link>
    • Data for development
    • Linking pages
    • Tips
    • Going live
  • More
  • About Builderoo

On This Page

  • Usage
  • Return Values
DocsReferenceFunctionsuseCart

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[]
useAppuseAccount