Skip to main content

React hooks

React hooks provide a convenient way to interact with the Checkout UI extensions API in React-based extensions.

NameDescription
useApi()

Returns the full API object that was passed in to your extension when it was created.

useExtensionApi()

Returns the full API object that was passed in to your extension when it was created.

useSubscription()

Subscribes to the special wrapper type that all "changeable" values in the checkout use.


Was this page helpful?