JSFiddle - React, Tailwind, and code Playground
HTML
<input id="formloginpassword" type="text" name="pass" placeholder="Password" value="filled-from-backend"></input>
JavaScript
$("input").on("keypress", function(){
alert($(this).val())
});