JSFiddle - React, Tailwind, and code Playground

HTML

<form id="myform"  method="post">
    <input name="email" type="email" placeholder="[email protected]" required=""/>
    <button type="submit">Submit</button>
</form>