JSFiddle - React, Tailwind, and code Playground

HTML

<div id="element" style="height:160px;background-color:#000;"></div>

JavaScript

var el=$('#element');
el.css({
    width: + el.height()
  });