JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" value="">

JavaScript

['cut', 'copy', 'paste'].forEach(function(event) {
    document.addEventListener(event, function(e) {
        console.log(event);   
    });
});