JSFiddle - React, Tailwind, and code Playground

HTML

<div id="wrapper"></div>

JavaScript

window.find = function (el) {
    return new App(el);
}

var App = function (el) {
    var element = document.getElementById(el);
    for(i in App.prototype){
        element[i] = App.prototype[i]
    }
    return element;
}

App.prototype.hide = function () {
    alert('something')
}

var test = find('wrapper');
console.log(test)

// test.style.display = 'none'; // i want to be able to do this