JSFiddle - React, Tailwind, and code Playground

HTML

teste <input id="teste"> <br><br>
<div class="esconde"><input id="teste2"></div>

CSS

.esconde{
    position: absolute;
    top: -100px;
}

JavaScript

$(document).ready(function(){
    $('#teste').on('paste',function(e){
        $('#teste2').focus();
        setTimeout(function(){ 
            alert($('#teste2').val());
            $('#teste').val($('#teste2').val());
            $('#teste2').val('');
        }, 100);
    });
});