News for hackers. Stuff that matters.
Re:Why we have banned default exports in JavaScript by hungerstrike on Thursday November 23, 2017 @12:01PM (#15766331)
Well, the most widely used style guide [0] and Facebook and many others including myself disagree. I'd rather see default exports everywhere so I only ever have to import one thing from your file.

None of the points made in the article are even valid.

1) You don't get better DX because you simply cannot use the same symbol name everywhere all the time anyway because names clash.

2) With point 1 gone, point 2 is wiped out as well.

3) This is patently false.

[0] https://github.com/airbnb/javascript#modules--prefer-default...

There are no comments on this comment yet.