JSFiddle - React, Tailwind, and code Playground
HTML
<html>
<head>
</head>
<body>
<div style = width:80%>
<text> Please enter your name</text>
<input id = "name">
<text> Please enter your age</text>
<input id = "age">
<input type = button id = "Submit" onclick = validate() >
</div>
</body>
</html>
JavaScript
function validate(){
if ()
}