The flow chart must have four mandatory props.
nodes
Node[]
the nodes present in the flow
edges
Edge[]
the edges to connect the nodes
onNodesChange
(newNodes: Node[]) => void
function called every time there is a change in a node on the flow
onEdgesChange
(newEdges: Edge[]) => void
function called every time there is a change on a edge on the flow
Last updated 2 years ago