JSFiddle - React, Tailwind, and code Playground

by brianjmiller

JavaScript

YUI().use("button-core", function(Y) {
    var button = new Y.ButtonCore({
        label: "Test",
        host: Y.Node.create("<a>")
    });
    button.getNode().on("click", function(e) {
        Y.log("click!");
    });
    Y.one("body").append(button.getNode());
});