JSFiddle - React, Tailwind, and code Playground
HTML
<div id='foo'>
</div>
JavaScript
var $A = function (test) {
return new $A.prototype.init(test);
};
$A.prototype = {
init: function (test) {
var a = 'function_var';
this[0] = a;
this[1] = arguments[0];
}
};
document.getElementById('foo').innerHTML = $A('hi_there')[0];
console.debug(jQuery('hi_there'))