JSFiddle - React, Tailwind, and code Playground

by bjoerne

HTML

<input id="input" />

JavaScript

document.getElementById('input').addEventListener('beforeinput', function(e) {
    alert('onbeforeinput called');
});