JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" />
<span></span>

<br><br>

<input type="button" value="unbind keyup" />

JavaScript

$('input:text').bind('keyup', function(){
$('span').text(this.value);
})
$('input:button').click(funtion(){
$('input:text').unbind('keyup');
})