JSFiddle - React, Tailwind, and code Playground by Eric L November 09, 2018 HTML <input id="numbersOnly" pattern="[0-9.]+" type="text">