JSFiddle - React, Tailwind, and code Playground

by psoares

HTML

<ul id="the-list"></ul>

CSS

#the-list {
    cursor : pointer;
}

JavaScript

require(["dojo/dom-construct", "dojo/on"], function(domconstr, on) {
   domconstr.create('li', { innerHTML: "click me" }, 'the-list');
    domconstr.create('li', { innerHTML: "or me" }, 'the-list');
     on(document, 'click', function(e) { 
console.debug(e.target.childNodes);      
console.debug(e);         
     });

});