Skip to content
Source
Sign inSign up
TanStack/form
Open History to see the last commit

index.tsx

23 lines675 Bytes

1import * as React from 'react'
2import { createRoot } from 'react-dom/client'
3import { TanStackDevtools } from '@tanstack/react-devtools'
4import { formDevtoolsPlugin } from '@tanstack/react-form-devtools'
5import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
6import { App } from './app'
7​
8const rootElement = document.getElementById('root')!
9​
10const queryClient = new QueryClient()
11​
12createRoot(rootElement).render(
13 <React.StrictMode>
14 <QueryClientProvider client={queryClient}>
15 <App />
16 </QueryClientProvider>
17​
18 <TanStackDevtools
19 config={{ hideUntilHover: false }}
20 plugins={[formDevtoolsPlugin()]}
21 />
22 </React.StrictMode>,