minor
This commit is contained in:
parent
89f1604e7b
commit
0e3c4263d7
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue