JSFiddle - React, Tailwind, and code Playground
HTML
<div id="divTest" style="background-color:#0000FF; width:50px;
height:50px;"></div>
<button id="btn">Change</button>
JavaScript
$(function () {
$('#btn').click(function (){
$('#divTest').css('background-color','#00FF00');
});
});