JSFiddle - React, Tailwind, and code Playground

JavaScript

// used for extending classes into new classes
    Function.prototype.Implement = function (base) {
        var c = Function.prototype.Implement.nonconstructor;
        c.prototype = new base();
        this.prototype = new c();
    };
    Function.prototype.Implement.nonconstructor = function () { };


    var BaseClass = function() {

        var me = this;

        me.BaseMethodOne = function () {
           alert('BaseMethodOne');
        };

        me.BaseMethodTwo= function () {
            alert('BaseMethodTwo');
        };
    }


    var MyClass = function() {

        var me = this;

        me.MyMethodOne = function () {
           alert('MyMethodOne ');
        };

        me.MyMethodTwo= function () {
            alert('MyMethodTwo');
        };
    }

    MyClass.Implement(BaseClass);


    var myObject = new MyClass();

    myObject.BaseMethodOne();
    myObject.BaseMethodTwo();
    myObject.MyMethodOne();
    myObject.MyMethodTwo();