JSFiddle - React, Tailwind, and code Playground

HTML

<p>hey this is some text</p>

JavaScript

$('p').on('copy', function (e) {
  var element = this;
  
  console.log( e.target + ' adding to this text' );
  
  setTimeout(function () {
    var text = $(element).val();
    console.log( text );
  }, 100);
    
});


$('p').on("paste", function(e) {
    console.log(e.clipboardData + ' TEST');
});