JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" /><div></div>
JavaScript
var inp = $("input")[0];
if ("onpropertychange" in inp)
inp.attachEvent("onpropertychange", $.proxy(function () {
if (event.propertyName == "value")
$("div").text(this.value);
}, inp));
else
inp.addEventListener("input", function () {
$("div").text(this.value);
}, false);