JSFiddle - React, Tailwind, and code Playground

by Oleh Kotsubko

HTML

<input>

JavaScript

$("input").keyup(function() {
    this.value = this.value.replace(/[а-я|\s|\/|\\]/i, "");
});