usePage
Name | Type | Description |
---|---|---|
id | String | ID of the page |
handle | Object | A human-friendly unique string for the page automatically generated from its title. |
title | Function | The title of the page. |
body | HTML | The description of the page, complete with HTML formatting. |
bodySummary | String | Summary of the page body. |
onlineStoreUrl | String | The URL used for viewing the resource on the shop's Online Store. |
pageData | String | Whole object of response for the page |
Usage:
import { usePage } from "@appmaker-xyz/shopify";
const { id, handle, title, body, bodySummary, onlineStoreUrl, pageData } =
usePage({
pageHandle: "hi-how-are-you", // the page handle
});
Refer
https://shopify.dev/docs/api/storefront/2023-07/objects/Page