JSFiddle - React, Tailwind, and code Playground
JavaScript
var Base = function(){
var a = 0;
this.GetA(){return a;}
this.SetA(v){a = v;}
}
function cChild(){
}
var base = new Base();
base.SetA(2);
var aVar = base.GetA();
console.log(aVar);