ES6クラスを使用してこのようなことを行うための構文を理解しようとしています:
function Component() {
}
Component.prototype.render = style(function() {
});
これは私がこれまでに持っているものです:
class Component {
constructor() {
super()
}
render style(() {
});
}
何か案は?
ES6クラスを使用してこのようなことを行うための構文を理解しようとしています:
function Component() {
}
Component.prototype.render = style(function() {
});
これは私がこれまでに持っているものです:
class Component {
constructor() {
super()
}
render style(() {
});
}
何か案は?