0
Fork 0
mirror of https://github.com/TanStack/form.git synced 2026-11-18 07:36:42 +00:00
form/docs/framework/react/guides/devtools.md
Hodeem 11cab495cb
docs(form): Fix grammar issues in the guides (#1965)
* docs(form): Fix grammar issues in the guides

* docs(form): Fix grammar issues in the guides

* ci: apply automated fixes and generate docs

* Update docs/framework/react/guides/devtools.md

Co-authored-by: LeCarbonator <18158911+LeCarbonator@users.noreply.github.com>

* Update docs/framework/react/guides/dynamic-validation.md

Co-authored-by: LeCarbonator <18158911+LeCarbonator@users.noreply.github.com>

* Removed duplicates from validation.md

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: LeCarbonator <18158911+LeCarbonator@users.noreply.github.com>
2026-01-04 10:51:28 +01:00

1.5 KiB

id title
devtools Devtools

TanStack Form comes with a ready-to-go suite of devtools.

Setup

Install the TanStack Devtools library and the TanStack Form plugin, from the framework adapter that you're working in (in this case @tanstack/react-devtools and @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 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>,
)

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.