# useAppBridge The `useAppBridge` hook returns the `shopify` global variable to use App Bridge APIs such as `toast` and `resourcePicker`. ```jsx import {useAppBridge} from '@shopify/app-bridge-react'; export function GenerateBlogPostButton() { const shopify = useAppBridge(); function generateBlogPost() { // Handle generating shopify.toast.show('Blog post template generated'); } return ; } ``` ## useAppBridge hook The `useAppBridge` hook is available for use in your app. It returns the `shopify` global or a proxy when not in a browser environment. For more information, see the [global variable section](https://shopify.dev/docs/api/app-bridge-library#shopify-global-variable) and the individual reference pages like [Toast](https://shopify.dev/docs/api/app-bridge-library/apis/toast) and [Resource Picker](https://shopify.dev/docs/api/app-bridge-library/apis/resource-picker). ## Related - [shopify global variable](https://shopify.dev/docs/api/app-bridge-library#shopify-global-variable)