JSFiddle - React, Tailwind, and code Playground
HTML
<label class='label' for="button">
<input id='button' type='checkbox' />
</label>
JavaScript
$("#button").click(function() {
$("#label").text(this.checked ? "book now" : "Booked");
});
<label class='label' for="button">
<input id='button' type='checkbox' />
</label>
$("#button").click(function() {
$("#label").text(this.checked ? "book now" : "Booked");
});