JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" name="x" value="22" disabled/>
<a href="#">change</a>
JavaScript
$('a').on('click',function(){
var inp=$(this).siblings('input');
inp.prop('disabled', false);
$(this).click(function(){
inp.prop('disabled', true);
});
});