import { FreeLayoutEditor, FreeLayoutPluginContext } from '@flowgram.ai/free-layout-editor'
function App() {
const ref = useRef<FreeLayoutPluginContext | undefined>();
useEffect(() => {
console.log(ref.current.document.toJSON())
}, [])
return (
<FreeLayoutEditor className="demo-editor" {...editorProps} ref={ref} />
)
}