useSnipcart

A starter for creating a new React hook

github.com/colbyfayock/use-snipcart

How to use

Add your instructions here!

Examples

  • My Cool Product

    $99.99

  • My Other Product

    $49.99

Input:

const { cart = {} } = useSnipcart();
const { subtotal = '0.00' } = cart;

Output:

Subtotal: $0.00