JSFiddle - React, Tailwind, and code Playground

HTML

Paste something into the following elements<br />
<input type='text' id=tb1 /><br />
<input type='text' id=tb2 /><br />
<textarea id='ta1' rows='4' cols='5' style='width:400px;height:100px' />

JavaScript

$('body').on('paste', 'input, textarea', function(e)
{
    setTimeout(function ()
    {
        alert($(e.currentTarget).val());
    },0);             
});