import { useVBI } from '@visactor/vbi-react'
useVBI(builder: VBIChartBuilder): UseVBIReturn
Subscribes to DSL snapshot changes on the builder, returning the latest dsl and the original builder.
dsl
builder
import type { VBIChartBuilder } from '@visactor/vbi' import { useVBI } from '@visactor/vbi-react' export function Demo({ builder }: { builder: VBIChartBuilder }) { const result = useVBI(builder) return <pre>{JSON.stringify(result, null, 2)}</pre> }