JSFiddle - React, Tailwind, and code Playground
HTML
<form method='post' action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"] );?>" onsubmit="return false" >
<fieldset>
<input type='email' name='foo' required />
<input type='submit' />
</fieldset>
</form>