JSFiddle - React, Tailwind, and code Playground

HTML

<html>
<body>
    <input name="edValue" type="text" onKeyUp="edValueKeyPress(this)"><br>
    
    
    <span id="lblValue">The text box contains: </span>
</body>

<script>
    function edValueKeyPress(a)
    {		var max = 10; 
        var edValue = a;
        var s = parseInt(edValue.value);
    		
        var lblValue = document.getElementById("lblValue");
        if(s < max){
        	lblValue.innerText = "this value is greater: "+s;
        }
        else{
        	lblValue.innerText = "this value is greater: "+s;
        }
        
    
        //var s = $("#edValue").val();
        //$("#lblValue").text(s);    
    }
</script>    

</html>