docs(readme): add react flow instance section
This commit is contained in:
@@ -6,7 +6,7 @@ import CustomEdge from './CustomEdge';
|
||||
|
||||
const onNodeDragStop = node => console.log('drag stop', node);
|
||||
const onElementClick = element => console.log('click', element);
|
||||
const onLoad = (graph) => graph.fitView();
|
||||
const onLoad = reactFlowInstance => reactFlowInstance.fitView();
|
||||
|
||||
const initialElements = [
|
||||
{ id: '1', type: 'input', data: { label: 'Input 1' }, position: { x: 250, y: 0 } },
|
||||
|
||||
Reference in New Issue
Block a user