DEV Community

Discussion on: Stop Writing JavaScript Like This

Collapse
 
mellen profile image
Matt Ellen

Strong disagree on using => over function. You'll have a confusing time with this.

Collapse
 
antonmelnyk profile image
Anton Melnyk

You should not use "this" in modern JavaScript in the first place.

Collapse
 
mellen profile image
Matt Ellen

Because?

Thread Thread
 
ifarmgolems profile image
Patrik Jajcay

Because it doesn't promote arguably better immutable state.

But hey, it's a bold statement and I wouldn't say it always applies.