JSFiddle - React, Tailwind, and code Playground
JavaScript
YUI().use('base', function (Y) {
ns = Y.namespace('lptest');
ns.First = new Y.Base.create('first', Y.Base, [], {
prop1: "",
prop2: 3,
initializer: function (cfg) {
this.prop1 = "test";
}
}, {
ATTRS: {
}
});
var test = new ns.First({
'value': 3,
'value2': 'two'
});
var test2 = new ns.First();
console.log(test.prop1);
test2.prop1 = 'no longer testing';
console.log(test.prop1);
console.log(test2.prop1);
});