Open History to see the last commit
1import { createFileRoute } from '@tanstack/react-router'
2import { TanStackDevtools } from '@tanstack/react-devtools'
3import { TanStackRouterDevtoolsPanel } from '@tanstack/react-router-devtools'
4β
5export const Route = createFileRoute('/')({
6 component: Home,
7})
8β
9function Home() {
10 return (
11 <div style={{ display: 'flex', flexDirection: 'column', height: '100vh' }}>
12 <h1 style={{ textAlign: 'center', width: '100%' }}>
13 Welcome to the Drizzle + TanStack Start example!
14 </h1>
15 <TanStackDevtools
16 plugins={[
17 {
18 name: 'TanStack Router',
19 render: () => <TanStackRouterDevtoolsPanel />,
20 },
21 {
22 name: 'Drizzle Studio',
23 render: () => (
24 <iframe
25 src="https://local.drizzle.studio"
26 style={{
27 flexGrow: 1,
28 width: '100%',
29 height: '100%',
30 border: 0,
31 }}
32 />
33 ),
34 },
35 ]}
36 />
37 </div>
38 )
39}