JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.10.3/jquery-ui.js"></script>
<link rel="stylesheet" href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.10.3/themes/cupertino/jquery-ui.css">
<div style='height: 1000px; background-color: yellow'>Scroll to the bottom, open dialog and move it!</div>
<div id='divtest'></div>
<button id='btn'>open dialog</button>
JavaScript
$('#divtest').dialog({
autoOpen: false
});
$('#btn').click(function () {
$('#divtest').dialog("open");
});