Template
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F22Ms5Cxam5UHyxaCrtZzu
11 lines
434 B
TypeScript
11 lines
434 B
TypeScript
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>();
|