JSFiddle - React, Tailwind, and code Playground
HTML
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery UI Resizable - Default functionality</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="/resources/demos/style.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script>
$( function() {
var $resizable = $('#resizable');
var width = $resizable.width();
var height = $resizable.height();
$resizable.resizable({handles: 'se,e,w', aspectRatio: width/height});
} );
</script>
</head>
<body>
<div id="resizable" class="ui-widget-content">
<img src="http://placehold.it/500x500" />
</div>
</body>
</html>
CSS
/* #resizable {
width: 500px;
height: 500px;
} */
img {
width: 100%;
height: 100%;
}