JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" id="disable-me" />

JavaScript

$(function() { 
    $('#disable-me').click(function () {
        $(this).attr("disabled", true); // doesn't work :/
    });
});