---
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-04
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
---

# 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/apis/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/apis/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/apis/usesubscription\(\)) | Subscribes to the special wrapper type that all "changeable" values in the checkout use. |

***