This commit is contained in:
Ilya Kantor 2019-07-09 04:09:55 +03:00
parent 89f1604e7b
commit 0e3c4263d7

View file

@ -222,7 +222,7 @@ export default function(user) { // no function name
export default ['Jan', 'Feb', 'Mar','Apr', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
```
That's fine, because `export default` is only one per file. Contrary to that, omitting a name for named imports would be an error:
Not giving a name is fine, because `export default` is only one per file. Contrary to that, omitting a name for named imports would be an error:
```js
export class { // Error! (non-default export needs a name)