JSFiddle - React, Tailwind, and code Playground
HTML
<input id="button" type='button' value='notclicked'>
JavaScript
$('#button').click(function() {
$(this).val('clicked');
});
<input id="button" type='button' value='notclicked'>
$('#button').click(function() {
$(this).val('clicked');
});