You are viewing a single comment's thread from:
RE: Differences in Defining ES6 Class Methods
Neet. Never thought about using fat arrow function when defining a class. Turns out there is a good reason not to do it :)
Neet. Never thought about using fat arrow function when defining a class. Turns out there is a good reason not to do it :)
I still use fat arrows quite often for React components, to be honest. You just need to be aware that you'll get problems when extending that class.
Oh, I use fat arrow functions all the time! Just not in conjunction with class properties. Inside methods, for callbacks and in promises for example they are great.