JSFiddle - React, Tailwind, and code Playground

by m_gol

HTML

<div id="test">
    This text should be invisible!
</div>

CSS

#test {
    background-color: black;
    width: 200px;
    height: 50px;
}

JavaScript

var div = document.getElementById('test'),
    style = div.style;

style.setProperty('color', 'red', 'important');
style.color = 'black';