This commit is contained in:
Violet.Lee 2019-09-17 03:00:26 +09:00 committed by GitHub
parent 646989dd47
commit 49bc62eee9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -305,7 +305,7 @@ import func from '/path/to/func.js';
...
```
Still, some teams consider it a serous drawback of default exports. So they prefer to always use named exports. Even if only a single thing is exported, it's still exported under a name, without `default`.
Still, some teams consider it a serious drawback of default exports. So they prefer to always use named exports. Even if only a single thing is exported, it's still exported under a name, without `default`.
That also makes re-export (see below) a little bit easier.