JSFiddle - React, Tailwind, and code Playground

HTML

<form>
    <input type="text" id="name" required="true">
    <button type="submit">Submit</button>
</form>