DEV Community

Discussion on: why you shouldn't use arrow functions?

Collapse
 
blessinghirwa profile image
Blessing Hirwa

I wanted to be more clear. But yours also works well.

Collapse
 
blessinghirwa profile image
Blessing Hirwa

I also changed it lol.

Collapse
 
lucgauer profile image
Lucas Gauer • Edited

Usage of return explicitly into a single statement arrow function (without the curly brackets), is actually a syntax error 🙁.