Shopify Hooks
Pack offers a library of hooks that make building your Shopify Storefront easy. These hooks are available to help you start developing customer and cart experience out-of-the-box right away.
/src/layouts/Storefront.jsx
import { useStorefrontInit } from '@backpackjs/storefront';
function StorefrontLayout({ ContentForLayout, ...props }) {
// initialize customer, cart, shop and markets
useStorefrontInit();
...
}
Last modified 10mo ago