JSFiddle - React, Tailwind, and code Playground
HTML
<html>
<head>
<title>Registration Form</title>
</head>
<body>
<script>
function test(){
document.write("<input type = \"text\">");
}
</script>
<form id="registationForm">
<input type = "text" name = "firstname" onblur="test()"/>
<input type = "text" name = "lastname"/>
<input type = "submit" name = "submit" value = "submit" onClick="submitForm(this.form)"/>
</form>
</body>
</html>