JSFiddle - React, Tailwind, and code Playground

by robaldred

HTML

<form>
    <input type="text" pattern="[a-z0-9\-]+\.[a-z]{2,}\.*[a-z]{2,}*" name="formName"  title="Domain name required" />
    <input type="submit" value="OK" />
</form>