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

Function RootDocument

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

Source from the content-addressed store, hash-verified

35})
36
37function RootDocument({ children }: { children: React.ReactNode }) {
38 console.log('Rendering Root Document')
39 const plugins = [
40 {
41 name: 'Tanstack Router',
42 render: <TanStackRouterDevtoolsPanel />,
43 },
44 {
45 id: 'route-navigation',
46 name: 'Route Navigation',
47 render: <RouteNavigationPanel />,
48 },
49 ]
50
51 return (
52 <html lang="en">
53 <head>
54 <HeadContent />
55 </head>
56 <body>
57 <Header />
58 {children}
59 <TanStackDevtools
60 config={{
61 position: 'bottom-right',
62 }}
63 plugins={plugins}
64 />
65 <Scripts />
66 </body>
67 </html>
68 )
69}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected