Ir al contenido

ReactDiagram

const ReactDiagram: ForwardRefExoticComponent<ReactDiagramProps & RefAttributes<ReactDiagramRef>>

Defined in: react/index.tsx:295

A React component matching gojs-react’s ReactDiagram shape (a factory prop plus ref.getDiagram()), for porting existing gojs-react code by only changing the import — as an alternative to this module’s own <Diagram>, which instead takes nodeTemplate/linkTemplate as declarative props.