JSFiddle - React, Tailwind, and code Playground

by aNt1X

HTML

<script src="http://code.jquery.com/ui/1.10.0/jquery-ui.min.js"></script>
<div style="height:200px; width: 200px; background-color: green">
<div id="red" style="height: 50px; width:50px; background-color: red; margin: 5px"></div>
<div id="yellow" style="height: 50px; width:50px; background-color: yellow; margin: 5px"></div>
</div>

JavaScript

$(function () {
    
$('#yellow').position({ my: 'left top', at: 'right top', of: $('#red') });
    
});