mirror of
https://github.com/TanStack/form.git
synced 2026-11-18 07:36:42 +00:00
1.5 KiB
1.5 KiB
| id | title |
|---|---|
| devtools | Devtools |
TanStack Form comes with a ready to go suit of devtools.
Setup
Install the TanStack Devtools library and the TanStack Form plugin, from the framework adapter that your working in (in this case @tanstack/solid-devtools, and @tanstack/solid-form-devtools).
npm i @tanstack/solid-devtools
npm i @tanstack/solid-form-devtools
Next in the root of your application import the TanStackDevtools.
import { TanStackDevtools } from '@tanstack/solid-devtools'
import App from './App'
render(
() => (
<>
<App />
<TanStackDevtools />
</>
),
root!,
)
Import the formDevtoolsPlugin from TanStack Form and provide it to the TanStackDevtools component.
import { TanStackDevtools } from '@tanstack/solid-devtools'
import { formDevtoolsPlugin } from '@tanstack/solid-form-devtools'
import App from './app'
const root = document.getElementById('root')
render(
() => (
<>
<App />
<TanStackDevtools plugins={[formDevtoolsPlugin()]} />
</>
),
root!,
)
Finally add any additional configuration you desire to the TanStackDevtools component, more information can be found under the TanStack Devtools Configuration section.
A complete working example can be found in our examples section.