JSFiddle - React, Tailwind, and code Playground
HTML
<p>Blocked with 'paste' event: <input id='pe' /></p>
<p>Blocked with 'input' event: <input id='ie' /></p>
JavaScript
$('#pe').bind("paste", function(e) {
e.preventDefault();
});
$('#ie').bind("input", function(e) {
var previousValue = $(this).data('old_value') || '',
newValue = $(this).val();
if((newValue.length - previousValue.length) > 1) {
$(this).val(previousValue);
}
$(this).data('old_value', $(this).val());
});