JSFiddle - React, Tailwind, and code Playground

HTML

<textarea id="im1" >Test</textarea>

JavaScript

document.body.appendChild(
    document.createTextNode("textarea is "
      + window.getComputedStyle(document.getElementById("im1")).display
      + " by default"));