JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" class="tfs">

JavaScript

$('.tfs').on("keyup", function(e) {
   alert("typed text");
})

$('.tfs').on('paste', function(e) {
   alert("paste text!");
});