MCPcopy Create free account
hub / github.com/TanStack/devtools / RootDocument

Function RootDocument

examples/react/start-nitro/src/routes/__root.tsx:16–41  ·  view source on GitHub ↗
({ children }: { children: React.ReactNode })

Source from the content-addressed store, hash-verified

14})
15
16function RootDocument({ children }: { children: React.ReactNode }) {
17 return (
18 <html lang="en">
19 <head>
20 <HeadContent />
21 </head>
22 <body style={{ margin: 0, fontFamily: 'system-ui, sans-serif' }}>
23 {children}
24 <TanStackDevtools
25 eventBusConfig={{
26 connectToServerBus: true,
27 }}
28 config={{ position: 'bottom-right' }}
29 plugins={[
30 {
31 id: 'server-events',
32 name: 'Server Events',
33 render: <ServerEventsPanel />,
34 },
35 ]}
36 />
37 <Scripts />
38 </body>
39 </html>
40 )
41}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected