JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/themes/cupertino/jquery-ui.css" />
<div id="resizeMe">Resize me for my center</div>

CSS

#resizeMe {
    position: absolute;
    left: 20px;
    top: 20px;
    width: 200px;
    height: 200px;
    background-color: pink;
    padding: 0.5em;
}

JavaScript

$('#resizeMe').resizable({
    aspectRatio: true
});