useProduct

The useProduct hook returns an object that enables you to keep track of the selected variant and/or selling plan state, as well as callbacks for modifying the state. The useProduct hook must be a child of the ProductProvider component.