JSFiddle - React, Tailwind, and code Playground
HTML
<form>
<P ALIGN="right">Email:
<br>
<input type="text" name="fname" value=test>
<br>Pass Word:
<br>
<input type="password" name="pass">
<br>
<input type="button" value="Log In" onclick="inform(form.fname.value)" />
</P>
</form>
JavaScript
function inform(name) {
alert(name);
}