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/preact-devtools) library, this will install the devtools core as well as provide you framework specific adapters.
11β
12```bash
13npm i @tanstack/preact-devtools
14```
15β
16Next in the root of your application import the `TanStackDevtools` from the required framework adapter (in this case @tanstack/preact-devtools).
17β
18```tsx
19import { TanStackDevtools } from '@tanstack/preact-devtools'
20import { render } from 'preact'
21β
22import App from './App'
23β
24render(
25 <>
26 <App />
27β
28 <TanStackDevtools />
29 </>,
30 document.getElementById('root')!,
31)
32```
33β
34Import the desired devtools and provide it to the `TanStackDevtools` component along with a label for the menu.
35β
36Currently TanStack offers:
37β
38- `QueryDevtools`
39- `RouterDevtools`
40- `PacerDevtools`
41- `FormDevtools` [coming soon](https://github.com/TanStack/form/pull/1692)
42β
43```tsx
44import { render } from 'preact'
45β
46import { TanStackDevtools } from '@tanstack/preact-devtools'
47β
48import App from './App'
49β
50render(
51 <>
52 <App />
53β
54 <TanStackDevtools
55 plugins={[
56 {
57 name: 'Your Plugin',
58 render: <YourPluginComponent />,
59 },
60 ]}
61 />
62 </>,
63 document.getElementById('root')!,
64)
65```
66β
67Finally add any additional configuration you desire to the `TanStackDevtools` component, more information can be found under the [TanStack Devtools Configuration](../../configuration) section.
68β
69A complete working example can be found in our [basic example](https://tanstack.com/devtools/latest/docs/framework/preact/examples/basic).