useCart

The useCart hook provides access to the cart object. It must be a descendent of a CartProvider component.