JSFiddle - React, Tailwind, and code Playground

by Felype Rennan

HTML

<button id="teste">
  TESTE
</button>

JavaScript

HTMLElement.prototype.click = function(fun) {
	this.addEventListener('click', fun);
};

var el = function(id) {
	return document.getElementById(id);
};

el('teste').click(function() {
	alert(1);
});