JSFiddle - React, Tailwind, and code Playground
HTML
<div id="btn" style="background-color:#bfbfbf; cursor:pointer" onclick="bg();">버튼</div>
<script>
function bg(){
$( "#btn" ).css( {'background-color':'red'} );
}
</script>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha256-3edrmyuQ0w65f8gfBsqowzjJe2iM6n0nKciPUp8y+7E=" crossorigin="anonymous"></script>