JSFiddle - React, Tailwind, and code Playground

HTML

<button id="first_btn">
first_btn
</button>
<button id="second_btn">
second_btn
</button>

CSS

#first_btn{
  background-color: green;
}
#first_btn:active{
  background-color: yellow;
}

JavaScript

$("#first_btn").click(function(){

})
$("#second_btn").click(function(){
$('#btn').addClass('active');
})