JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://raw.github.com/javascript/augment/master/lib/augment.js"></script>

JavaScript

var Foo = Object.augment(function () {
    this.constructor = function () {
        this.someProperty = 1;
    };

    this.incrementProperty = function () {
        this.someProperty++;
    };
});

var Bar = Foo.augment(function (base) {
    this.constructor = function () {
        base.constructor.call(this);
    };

    this.incrementProperty = function () {
        base.incrementProperty.call(this);
        return this.someProperty;
    };
});

var bar = new Bar;

alert(bar.incrementProperty());