3 ms·
With getters you can simply do { get handlerFn() { return (e) => ... } } And then in template <a onClick={this.handlerFn} />
by vsviridov 10y ago
With getters you can simply do {
get handlerFn() {
return (e) => ...
}
}
And then in template <a onClick={this.handlerFn} />