JSFiddle - React, Tailwind, and code Playground

HTML

<input id="button" type='button' value='notclicked'>

JavaScript

$('#button').click(function() {
    $(this).val('clicked');
});