---
title: React hooks
description: >-
  Build extensions that integrate into Shopify's checkout interface. For
  example, you can add custom fields to collect additional information, display
  personalized upsells, or customize the Thank you page experience.
api_version: 2026-07
source_url:
  html: 'https://shopify.dev/docs/api/checkout-ui-extensions/latest/react-hooks'
  md: 'https://shopify.dev/docs/api/checkout-ui-extensions/latest/react-hooks.md'
api_name: checkout-ui-extensions
---

# React hooks

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

## React hooks

| Name | Description |
| - | - |
| [useApi()](https://shopify.dev/docs/api/checkout-ui-extensions/latest/react-hooks/useapi) | Returns the full API object that was passed in to your extension when it was created. |
| [useExtensionApi()](https://shopify.dev/docs/api/checkout-ui-extensions/latest/react-hooks/useextensionapi) | Returns the full API object that was passed in to your extension when it was created. |
| [useSubscription()](https://shopify.dev/docs/api/checkout-ui-extensions/latest/react-hooks/usesubscription) | Subscribes to the special wrapper type that all "changeable" values in the checkout use. |

***
