JSFiddle - React, Tailwind, and code Playground

HTML

<button>Hook It!</button>

JavaScript

$("button").on('click',function(){
     var ths = $(this);
     var txt = ths.html();
     ths.html(txt == 'Hook It!' ? 'Unhook!' : 'Hook It!');
 });