阅读背景:

如何使用箭头函数(公共类字段)作为类方法?

来源:互联网 

I'm new to using ES6 classes with React, previously I've been binding my methods to the current object (show in first example), but does ES6 allow me to permanently bind a class function to a class instance with arrows? (Useful when passing as a callback function.) I get errors when I try to use them as you can with CoffeeScript:I'm new to using ES6 classes with React, previo




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: