JSFiddle - React, Tailwind, and code Playground
HTML
<div id="all">Text</div>
JavaScript
syntaxhighligter = {
all: function(inputColor) {
if (!inputColor)
inputColor= prompt("Enter a color");
$('#all').css({
background: inputColor
});
}
}
syntaxhighligter.all();