Documentation
Framework
Version
API Reference

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/react-devtools, and @tanstack/react-form-devtools).

npm i @tanstack/react-devtools
npm i @tanstack/react-form-devtools
npm i @tanstack/react-devtools
npm i @tanstack/react-form-devtools

Next in the root of your application import the TanstackDevtools.

import { TanstackDevtools } from '@tanstack/react-devtools'

import App from './App'

createRoot(document.getElementById('root')!).render(
  <StrictMode>
    <App />

    <TanstackDevtools />
  </StrictMode>,
)
import { TanstackDevtools } from '@tanstack/react-devtools'

import App from './App'

createRoot(document.getElementById('root')!).render(
  <StrictMode>
    <App />

    <TanstackDevtools />
  </StrictMode>,
)

Import the FormDevtoolsPlugin from TanStack Form and provide it to the TanstackDevtools component.

import { TanstackDevtools } from '@tanstack/react-devtools'
import { FormDevtoolsPlugin } from '@tanstack/react-form-devtools'

import App from './App'

createRoot(document.getElementById('root')!).render(
  <StrictMode>
    <App />

    <TanstackDevtools plugins={[FormDevtoolsPlugin()]} />
  </StrictMode>,
)
import { TanstackDevtools } from '@tanstack/react-devtools'
import { FormDevtoolsPlugin } from '@tanstack/react-form-devtools'

import App from './App'

createRoot(document.getElementById('root')!).render(
  <StrictMode>
    <App />

    <TanstackDevtools plugins={[FormDevtoolsPlugin()]} />
  </StrictMode>,
)

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.

Our Partners
Code Rabbit
Cloudflare
Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.

Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.