JSFiddle - React, Tailwind, and code Playground

by Vladimir

HTML

<style>
.show {
   display: list-item !important;
 }
</style>

<li id="li1" class="show" style="display: none;">LI</li>
<div id="output"></div>  

<script>
  function getTheStyle(){
    var elem = document.getElementById("li1");
    var theCSSprop = window.getComputedStyle(elem,null).getPropertyValue("display");
    document.getElementById("output").innerHTML = "display: "+theCSSprop;
   }
  getTheStyle();
</script>