JSFiddle - React, Tailwind, and code Playground

HTML

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

JavaScript

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