Primitive hooks
Primitive hooks are the building blocks for different component types, including products, variants, and cart.
Hydrogen includes the following primitive hooks:
Hook name | Description |
---|---|
useLoadScript | The useLoadScript hook loads an external script tag on the client-side. |
useMoney | The useMoney hook takes a MoneyV2 object and returns a default-formatted string of the amount with the correct currency indicator, along with some of the parts provided by Intl.NumberFormat . |