JSFiddle - React, Tailwind, and code Playground
by Thomas Upton
JavaScript
require([
'dojo/_base/declare',
'dojo/Stateful'
], function(declare, Stateful) {
var MyWidget = declare([Stateful], {
constructor: function() {
console.log('constructor: ', arguments);
this.inherited(arguments);
},
postscript: function() {
console.log('postscript:', arguments);
this.inherited(arguments);
}
});
var m = new MyWidget({
key: 'val',
a: '1'
}, 'hello', 1);
console.log(m);
});