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.
Anchor to React hooksReact hooks
| Name | Description |
|---|---|
| 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?