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

Function App

sample-apps/payment-customizations/app/routes/app.jsx:14–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12};
13
14export default function App() {
15 const { apiKey } = useLoaderData();
16
17 return (
18 <AppProvider embedded apiKey={apiKey}>
19 <s-app-nav>
20 <s-link href="/app" rel="home">Home</s-link>
21 <s-link href="/app/additional">Additional page</s-link>
22 </s-app-nav>
23 <Outlet />
24 </AppProvider>
25 );
26}
27
28// Shopify needs React Router to catch some thrown responses, so that their headers are included in the response.
29export function ErrorBoundary() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected