Template
Initial commit
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F22Ms5Cxam5UHyxaCrtZzu
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { createProductComponents } from "@shopify/hydrogen/react";
|
||||
|
||||
import type { ProductData } from "./product-query";
|
||||
|
||||
/**
|
||||
* React product bindings derived from the typed product query
|
||||
* (`hydrogen-variant-form` / `references/react.md`). The provider owns variant
|
||||
* selection state; `onSelect` is where same-product URL sync happens.
|
||||
*/
|
||||
export const { ProductProvider, useProductForm } = createProductComponents<ProductData>();
|
||||
Reference in New Issue
Block a user