2 ms·
Yeah, I write all my new stuff in JS (React frontend, Node backend) and have never felt the need for defining my own classes. Wasn't actively avoiding them eith
by hot_gril 4y ago
Yeah, I write all my new stuff in JS (React frontend, Node backend) and have never felt the need for defining my own classes. Wasn't actively avoiding them either. React was fully centered around classes and they ditched all that in the new hooks system.
I also don't understand the big deal with arrow functions. Yeah I use them, but they're basically regular functions except slightly shorter to write. `async` was a big improvement, though.
- jfengel 4y agoArrow functions have less-incomprehensible semantics of what "this" means. Though that's less important if you're not using the classes. Most users just use arrow functions as syntactic sugar. But it's really good syntactic sugar.