React bindings for visimer:
a drop-in visual Mermaid editor component. Click, drag, and type directly on the
diagram; the code prop stays in sync with minimal text edits.
import { useState } from 'react'
import mermaid from 'mermaid'
import { MermaidWysiwyg } from '@visimer/react'
function App() {
const [code, setCode] = useState('flowchart TD\n A[Start] --> B{OK?}')
return <MermaidWysiwyg code={code} onCodeChange={setCode} mermaid={mermaid} />
}Also exports MermaidCanvas (bring your own editor instance) and
useMermaidEditor (own the engine, re-render on change/selection).