JSFiddle - React, Tailwind, and code Playground
HTML
<div id="box"> </div>
<button id="btn">click</button>
CSS
#box{
width:100px;
height:100px;
background:red;
}
JavaScript
$('#btn').click(function(e){
var w=prompt("Enter new hue:","");
$('#box').css('-webkit-filter','hue-rotate('+w+'deg)');
});