JSFiddle - React, Tailwind, and code Playground

HTML

<button id="btn">Click me!</button>

JavaScript

$('#btn').on('click',function(){
    $('#btn').css({'background-color':'red'});
});

$('#btn').off('click').on('click',function(){
    $('#btn').text('hello');
});