JSFiddle - React, Tailwind, and code Playground

by Daniel Lamb

HTML

<input id="example">
copied: <span>false</span>

JavaScript

$('#example').on('copy', function() {
    $('span').text('true');
});