JSFiddle - React, Tailwind, and code Playground

HTML

<form method="post" action="receive.js">
    <input type="text" name="someValue" pattern="\d{5}" placeholder="Enter five numbers" />

    <input type="submit" value="submit" />

</form>