JSFiddle - React, Tailwind, and code Playground

by Alex Baumgertner

HTML

<div class="masters_cleaner">

</div>

JavaScript

var Masters = function(dom) {
  this.dom = dom; // селектор?
  
  this.init();
};

Masters.prototype.init = function() {
  this.prevNode = this.dom.find()

   this.dom.on('click', function() {
     this.showAll();
   }.bind(this);
};

Masters.prototype.showAll = function() {};

Masters.prototype.show = function() {};

var cleaners = new Masters($('.masters_cleaner'));