JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://code.jquery.com/ui/1.10.0/jquery-ui.min.js"></script>
<div id="yellow" style="position: absolute; height: 50px; width:50px; background-color: yellow; margin: 5px"></div>
<div id="red" style="position: absolute; height: 50px; width:50px; background-color: red; margin: 5px"></div>
JavaScript
$(function () {
$('#yellow').position({ my: 'left top', at: 'right top', of: $('#red') });
});