JSFiddle - React, Tailwind, and code Playground
HTML
<div id='wrapper'></div>
JavaScript
var wrapper = document.body.getElement('#wrapper');
console.log(wrapper);
var MyClass = new Class({
log: function() {
console.log.apply(null, arguments);
}
})
var Log = new MyClass();
console.log(Log.log);
/* var button = new Element('button', { id: 'but', text: 'Button' });
button.addEvent('click', Log.log.bindWithEvent(Log, 'huy'));
*/button.inject(wrapper);