JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://cdn.jsdelivr.net/npm/leader-line@1.0.5/leader-line.min.js"></script>
<div style="display: flex;">
<div class="css-181e6i2 edgvbvh1" id="28" style="height: 30px; width: 30px; margin: 5px; background-color: blue;"></div>
<div class="css-181e6i2 edgvbvh1" id="47" style="height: 30px; width: 30px; margin: 5px; background-color: yellow;"></div>
<div class="css-181e6i2 edgvbvh1" id="113" style="height: 30px; width: 30px; margin: 5px; background-color: yellow;"></div>
<div class="css-181e6i2 edgvbvh1" id="563" style="height: 30px; width: 30px; margin: 5px; background-color: yellow;"></div>
<div class="css-181e6i2 edgvbvh1" id="453" style="height: 30px; width: 30px; margin: 5px; background-color: yellow;"></div>
<div class="css-181e6i2 edgvbvh1" id="3" style="height: 30px; width: 30px; margin: 5px; background-color: blue;"></div>
</div>
<script src="https://files.cnblogs.com/files/mggahui/leader-line.min.js"></script>

JavaScript

var myLine = new LeaderLine(
  document.getElementById('28'),
  document.getElementById('3')
)