JSFiddle - React, Tailwind, and code Playground

by Alex

HTML

<input type='text' id='target'>

JavaScript

document.getElementById("target").addEventListener('input', function() {
	this.value = this.value.replace(/[abcde]/g, '');
});