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

Function DevtoolsExample

examples/react/basic/src/setup.tsx:58–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56const routeTree = rootRoute.addChildren([indexRoute, aboutRoute])
57const router = createRouter({
58 routeTree,
59})
60export default function DevtoolsExample() {
61 return (
62 <>
63 <TanStackDevtools
64 eventBusConfig={{
65 connectToServerBus: true,
66 }}
67 config={{ sourceAction: 'copy-path', position: 'bottom-left' }}
68 plugins={[
69 a11yDevtoolsPlugin(),
70 {
71 name: 'TanStack Query',
72 render: <ReactQueryDevtoolsPanel />,
73 },
74 {
75 name: 'TanStack Router',
76 render: <TanStackRouterDevtoolsPanel router={router} />,
77 },
78 {
79 name: 'TanStack Router',
80 render: <TanStackRouterDevtoolsPanel router={router} />,
81 },
82 {
83 name: 'Package.json',
84 render: () => <PackageJsonPanel />,
85 },
86
87 /* {
88 name: "The actual app",
89 render: <iframe style={{ width: '100%', height: '100%' }} src="http://localhost:3005" />,
90 } */
91 ]}
92 />
93 <RouterProvider router={router} />
94 {import.meta.env.DEV && <A11yAuditFixture />}
95 </>
96 )

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected