Skip to main content
Migrate to Polaris

Version 2025-07 is the last API version to support React-based UI components. Later versions use web components, native UI elements with built-in accessibility, better performance, and consistent styling with Shopify's design system. Check out the migration guide to upgrade your extension.

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?