JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://jsplumbtoolkit.com/js/jquery.jsPlumb-1.5.3-min.js"></script>
<div class="component window" id="window1">w1</div>
<div class="component window" id="window2">w2</div>
<div class="component window" id="window3">w3</div>

CSS

.window {
    background: blue;
    width: 100px;
    height: 100px;
    position: absolute;
    color: white;
}

#window1 { width:240px; height:110px; top:50px; left:250px; }
#window2 { width:200px; height:90px; top:200px; left:20px; }
#window3 { width:240px; height:110px; top:320px; left:250px; }

JavaScript

jsPlumb.ready(function() {
    
    // default settings for connectors
    var connectionParams = {
        connector: ["Flowchart", {cornerRadius:1}],
        paintStyle:{ 
            lineWidth: 1,
            outlineColor:"blue",
            outlineWidth: 0
        },
        detachable:false,
        endpointStyle: { radius:1 }
    };
    
    // w2 <=> w1
    jsPlumb.connect({
        source: "window2", 
        target: "window1",
        anchors: ["TopCenter", "Left"]
    }, connectionParams);
    
    // w2 <=> w2
    jsPlumb.connect({
        source: "window2", 
        target: "window3",
        anchors: ["BottomCenter", "Left"]
    }, connectionParams);
    
    //
    jsPlumb.draggable(
        jsPlumb.getSelector(".window"),
        { containment:".demo"}
    );
});