From d93dcdb398f6187cef8c31dd7d4cbe2c8c1ee955 Mon Sep 17 00:00:00 2001 From: Jason Zhu Date: Mon, 29 May 2023 19:47:01 +1000 Subject: [PATCH] Getting Started -> Building a Flow -> Adding an Edge: add label and define type of the edges --- src/App.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index 30e5875..75d447a 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -3,7 +3,9 @@ import ReactFlow, { Background, Controls } from 'reactflow'; // we have to import the React Flow styles for it to work import 'reactflow/dist/style.css'; -const edges = [{ id: '1-2', source: '1', target: '2' }]; +const edges = [ + { id: '1-2', source: '1', target: '2', label: 'to the', type: 'step' }, +]; const nodes = [ {