JSFiddle - React, Tailwind, and code Playground
by Proger
HTML
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.7.0/underscore-min.js"></script>
<script src="http://squizzle.me/js/sqimitive/sqimitive.min.js"></script>
JavaScript
var Base = Sqimitive.Sqimitive.extend({
property: 'Hello',
show: function (right) {
alert(this.property + right)
},
})
var Child = Base.extend({
property: 'Bye',
events: {
'=show': function (sup, right) {
sup(this, [' World' + right])
},
},
})
;(new Base).show('123')
// alert('Hello123')
;(new Child).show('123')
// alert('Bye World123')