News for hackers. Stuff that matters.
Re:JSX is no longer my friend by gberger on Tuesday March 15, 2016 @07:53PM (#11293958)
If you omit the {} you can then also omit the return.

https://developer.mozilla.org/en/docs/Web/JavaScript/Referen...

Re:JSX is no longer my friend by couchand on Tuesday March 15, 2016 @08:15PM (#11294058)
True but irrelevant, the GP is talking about the top level function, not the fat arrow one.
Re:JSX is no longer my friend by gberger on Tuesday March 15, 2016 @10:41PM (#11294609)
Guess I was also in a hurry!