MCPcopy Create free account
hub / github.com/adobe/react-spectrum / App

Function App

examples/remix/app/root.tsx:20–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18}
19
20export default function App() {
21 let navigate = useNavigate();
22 return (
23 <html lang="en">
24 <head>
25 <meta charSet="utf-8" />
26 <meta name="viewport" content="width=device-width, initial-scale=1" />
27 <Meta />
28 <Links />
29 </head>
30 <body>
31 <Provider
32 theme={defaultTheme}
33 locale="en"
34 router={{
35 navigate,
36 useHref
37 }}>
38 <Outlet />
39 </Provider>
40 <ScrollRestoration />
41 {/* https://remix.run/docs/en/main/guides/envvars */}
42 <script
43 dangerouslySetInnerHTML={{
44 __html: `window.process = {}; window.process.env = {};`
45 }}
46 />
47 <Scripts />
48 <LiveReload />
49 </body>
50 </html>
51 );
52}

Callers

nothing calls this directly

Calls 1

useNavigateFunction · 0.85

Tested by

no test coverage detected