JSFiddle - React, Tailwind, and code Playground
by hokuma
HTML
<form id="form" action="/echo" method="post">
<input type="email" id="email" required value=""/>
</form>
JavaScript
const form = document.getElementById("form")
if(form.reportValidity()
form.submit()