r/javascript • • Aug 27 '18

`export default` considered harmful

https://basarat.gitbooks.io/typescript/docs/tips/defaultIsBad.html
32 Upvotes

43 comments sorted by

View all comments

32

u/dominic_rj23 Aug 27 '18

I am not sure if I like the idea of changing coding style just so that tools works with it.

5

u/villiger2 Aug 27 '18

I think of it the other way around. If I'm doing a project and the tooling better supports one way with no obvious trade-odds, why not do it that way?

Specifically on this issue I don't see the benefits of default exports, tooling aside.

0

u/[deleted] Aug 27 '18

[deleted]

2

u/villiger2 Aug 28 '18

I agree with you!