MCPcopy Create free account
hub / github.com/Shopify/function-examples / App

Function App

sample-apps/discounts/app/root.jsx:17–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15}
16
17export default function App() {
18 const { apiKey } = useLoaderData();
19 return (
20 <html>
21 <head>
22 <meta name="shopify-api-key" content={apiKey} />
23 <script src="https://cdn.shopify.com/shopifycloud/app-bridge.js"></script>
24 <meta charSet="utf-8" />
25 <meta name="viewport" content="width=device-width,initial-scale=1" />
26 <Meta />
27 <Links />
28 </head>
29 <body>
30 <Outlet />
31 <ScrollRestoration />
32 <LiveReload />
33 <Scripts />
34 </body>
35 </html>
36 );
37}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected