JSFiddle - React, Tailwind, and code Playground

by cancerbero_sgx

JavaScript

YUI().use('node', function(Y) {
    var el1 = Y.one("body").appendChild("<b>SampleEl</b>");
    YUI().use('node-event-simulate', function(Y) {
        el1.on("click", function(e){alert("clicked alt="+e.altKey); })
        el1.simulate("click", {altKey: true});
    });
});