Open History to see the last commit
1---
2title: Basic setup
3id: basic-setup
4---
5β
6TanStack devtools provides you with an easy to use and modular client that allows you to compose multiple devtools into one easy to use panel.
7β
8## Setup
9β
10Install the [TanStack Devtools](https://www.npmjs.com/package/@tanstack/react-devtools) library, this will install the devtools core as well as provide you framework specific adapters.
11β
12```bash
13npm i @tanstack/react-devtools
14```
15β
16Next in the root of your application import the `TanStackDevtools` from the required framework adapter (in this case @tanstack/react-devtools).
17β
18```tsx
19import { TanStackDevtools } from '@tanstack/react-devtools'
20β
21import App from './App'
22β
23createRoot(document.getElementById('root')!).render(
24 <StrictMode>
25 <App />
26β
27 <TanStackDevtools />
28 </StrictMode>,
29)
30```
31β
32Import the desired devtools and provide it to the `TanStackDevtools` component along with a label for the menu.
33β
34Currently TanStack offers:
35β
36- `QueryDevtools`
37- `RouterDevtools`
38- `PacerDevtools`
39- `FormDevtools` [coming soon](https://github.com/TanStack/form/pull/1692)
40β
41```tsx
42import { createRoot } from 'react-dom/client'
43β
44import { TanStackDevtools } from '@tanstack/react-devtools'
45β
46import { ReactQueryDevtoolsPanel } from '@tanstack/react-query-devtools'
47import { TanStackRouterDevtoolsPanel } from '@tanstack/react-router-devtools'
48import { ReactFormDevtoolsPanel } from '@tanstack/react-form-devtools'
49β
50β
51import App from './App'
52β
53createRoot(document.getElementById('root')!).render(
54 <StrictMode>
55 <App />
56β
57 <TanStackDevtools
58 plugins={[
59 {
60 name: 'TanStack Query',
61 render: <ReactQueryDevtoolsPanel />,
62 },
63 {
64 name: 'TanStack Router',
65 render: <TanStackRouterDevtoolsPanel />,
66 },
67 {
68 name: 'TanStack Form',
69 render: <ReactFormDevtoolsPanel />,
70 },
71 ]}
72 />
73 </StrictMode>,
74)
75```
76β
77Finally add any additional configuration you desire to the `TanStackDevtools` component, more information can be found under the [TanStack Devtools Configuration](../../configuration) section.
78β
79A complete working example can be found in our [basic example](https://tanstack.com/devtools/latest/docs/framework/react/examples/basic).