@tanstack/devtools
v0.8.2
Published
TanStack Devtools is a set of tools for building advanced devtools for your application.
Readme
@tanstack/devtools
This package is still under active development and might have breaking changes in the future. Please use it with caution.
General Usage
import { TanStackDevtoolsCore } from '@tanstack/devtools'
const devtools = new TanStackDevtoolsCore({
options: {
// your options here
},
plugins: [
// your plugins here
],
})
devtools.mount(document.getElementById('your-devtools-container')!)Creating plugins
In order to create a plugin for TanStack Devtools, you can use the plugins arg of the TanStackDevtoolsCore class. Here's an example of how to create a simple plugin:
import { TanStackDevtoolsCore } from '@tanstack/devtools'
const devtools = new TanStackDevtoolsCore({
config: {
// your config here
},
plugins: [
{
id: 'my-plugin',
name: 'My Plugin',
render: (el) => (el.innerHTML = '<div>My Plugin Content</div>'),
},
],
})