docs(readme): add react flow instance section

This commit is contained in:
moklick
2020-06-02 12:26:12 +02:00
parent 2d4a64d341
commit d95fc1279a
9 changed files with 57 additions and 30 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import React, { useState } from 'react';
import ReactFlow, { removeElements, addEdge, isNode, Background } from 'react-flow-renderer';
const onNodeDragStop = node => console.log('drag stop', node);
const onLoad = graphInstance => console.log('graph loaded:', graphInstance);
const onLoad = reactFlowInstance => console.log('graph loaded:', reactFlowInstance);
const onElementClick = element => console.log('click', element);
const initialElements = [