MCPcopy Create free account
hub / github.com/triggerdotdev/jsonhero-web / App

Function App

app/root.tsx:82–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80}
81
82function App() {
83 const [theme] = useTheme();
84
85 return (
86 <html lang="en" className={clsx(theme)}>
87 <head>
88 <Meta />
89 <meta charSet="utf-8" />
90 <Links />
91 <NonFlashOfWrongThemeEls ssrTheme={Boolean(theme)} />
92 </head>
93 <body className="overscroll-none">
94 <Outlet />
95 <ScrollRestoration />
96 <Scripts />
97 {process.env.NODE_ENV === "development" && <LiveReload />}
98 </body>
99 </html>
100 );
101}
102
103export default function AppWithProviders() {
104 const { theme, starCount, themeOverride } = useLoaderData<LoaderData>();

Callers

nothing calls this directly

Calls 1

useThemeFunction · 0.90

Tested by

no test coverage detected