JSFiddle - React, Tailwind, and code Playground
by Vatsal Pande
HTML
<input type = "text" id="testText" val="" oninput="myFunction">
<span id="inputText"></span>
<script>
function myFunction() {
var x = document.getElementById("myInput").value;
document.getElementById("demo").innerHTML = "You wrote: " + x;
}
</script>