JSFiddle - React, Tailwind, and code Playground
HTML
Fill this before you continue:
<input id="a" />
<br>
<br>
Fill this after the previous input
<input id="b" disabled="disabled" />
JavaScript
console.log($('#a')[0]);
$('#a').on('keyup paste propertychange input', function() {
if (this.value === "") $('#b').prop('disabled', true);
else $('#b').removeAttr('disabled');
});