minor
This commit is contained in:
parent
d1c2c4c082
commit
89f1604e7b
2 changed files with 5 additions and 1 deletions
|
@ -209,11 +209,15 @@ For instance, these are all perfectly valid default exports:
|
|||
export default class { // no class name
|
||||
constructor() { ... }
|
||||
}
|
||||
```
|
||||
|
||||
```js
|
||||
export default function(user) { // no function name
|
||||
alert(`Hello, ${user}!`);
|
||||
}
|
||||
```
|
||||
|
||||
```js
|
||||
// export a single value, without making a variable
|
||||
export default ['Jan', 'Feb', 'Mar','Apr', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue