JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" id="hi" value="initial" />
JavaScript
$('#hi').bind('paste', function() {
var t = this;
setTimeout(function() {
alert(t.value);
}, 0);
});
<input type="text" id="hi" value="initial" />
$('#hi').bind('paste', function() {
var t = this;
setTimeout(function() {
alert(t.value);
}, 0);
});