OnInit

Source on GitHub

The OnInit type defines the callback function that is called when the ReactFlow instance is initialized. This callback receives the ReactFlow instance as its argument.

type OnInit = (reactFlowInstance: ReactFlowInstance) => void;
Parameters
  • reactFlowInstance: ReactFlowInstance<NodeType, EdgeType>
Returns

void