JSFiddle - React, Tailwind, and code Playground
HTML
<div id='main'>
<button>Start Schedule</button>
</div>
<div></div>
JavaScript
jQuery(function($){
// closure cache
var closure;
$('#main')
.delegate('button:contains(Start)', 'click', function (e) {
var _t = $(this);
_t.text('Cancel Schedule');
});
});