JSFiddle - React, Tailwind, and code Playground
JavaScript
let a = function(a, callback){
this.a = a;
this.b = callback;
}
a.prototype.pp = function() {
console.log(this.a);
this.b();
}
let temp = new a(1, function(resp){console.log("cc")});
temp.pp();