JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" />

JavaScript

$('input').on('input propertychange paste', function (e) {
    var reg = /^0[0-9]+/gi;
    if (this.value.match(reg)) {
        this.value = this.value.substring(1);
    }
});