Skip to content
Source
Sign inSign up
TanStack/devtools
Open History to see the last commit

index.tsx

22 lines448 Bytes

1import { render } from 'preact'
2import { TanStackDevtools } from '@tanstack/preact-devtools'
3​
4function App() {
5 return (
6 <>
7 <h1>preact e2e</h1>
8 <TanStackDevtools
9 plugins={[
10 {
11 name: 'Demo',
12 render: () => (
13 <div data-testid="demo-plugin">demo plugin content</div>
14 ),
15 },
16 ]}
17 />
18 </>
19 )
21​
22render(<App />, document.getElementById('root')!)