You'll need to keep the current value of the input in state (or pass changes in its value up to a parent via a callback function, or sideways, or such that it eventually gets passed back into your component as a prop) so you can derive the disabled prop for the button.