JSFiddle - React, Tailwind, and code Playground

HTML

Fee: <input id="fee"><br>
Currency: <input id="currency"><br>

JavaScript

$("#fee")
  .on('input', function() {
$('#currency').prop('disabled', (this.value === '0' || this.value === ''));  
})
  .trigger('input');