ProductProvider component sets up a context with state that tracks the selected variant and options. Descendants of this component can use the
Example codeAnchor link to section titled "Example code"
||An object with fields that correspond to the Storefront API's
||The initially selected variant.
The following logic applies to
Component typeAnchor link to section titled "Component type"
ProductProvider component is a client component, which means that it renders on the client. For more information about component types, refer to React Server Components.