JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" class="clean">
JavaScript
jQuery('.clean').keyup(function () {
this.value = this.value.replace(/[!`~$#%^*()=;:<>/?\[\]{}]/ig,'');
});
<input type="text" class="clean">
jQuery('.clean').keyup(function () {
this.value = this.value.replace(/[!`~$#%^*()=;:<>/?\[\]{}]/ig,'');
});