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

Function App

sample-apps/bundles-cart-transform/web/frontend/App.jsx:11–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9} from "./components";
10
11export default function App() {
12 // Any .tsx or .jsx files in /pages will become a route
13 // See documentation for <Routes /> for more info
14 const pages = import.meta.globEager("./pages/**/!(*.test.[jt]sx)*.([jt]sx)");
15
16 return (
17 <PolarisProvider>
18 <BrowserRouter>
19 <AppBridgeProvider>
20 <QueryProvider>
21 <NavigationMenu
22 navigationLinks={[
23 {
24 label: "README",
25 destination: "/readme",
26 },
27 ]}
28 />
29 <Routes pages={pages} />
30 </QueryProvider>
31 </AppBridgeProvider>
32 </BrowserRouter>
33 </PolarisProvider>
34 );
35}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected