JSFiddle - React, Tailwind, and code Playground

HTML

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

JavaScript

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