mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
14 lines
208 B
JavaScript
14 lines
208 B
JavaScript
function Component() {
|
|
throw new Error("THIS SHOULD NOT BE CALLED");
|
|
}
|
|
|
|
Component.prototype = {
|
|
onCreate: function () {
|
|
this.state = {
|
|
name: "Frank",
|
|
};
|
|
},
|
|
};
|
|
|
|
module.exports = Component;
|