Fix typo
This commit is contained in:
parent
19223ae762
commit
10decb52ee
1 changed files with 1 additions and 1 deletions
|
@ -377,7 +377,7 @@ export {default as Github} from './providers/github.js';
|
||||||
````warn header="Re-exporting default is tricky"
|
````warn header="Re-exporting default is tricky"
|
||||||
Please note: `export User from './user.js'` won't work. It's actually a syntax error. To re-export the default export, we must mention it explicitly `{default as ...}`, like in the example above.
|
Please note: `export User from './user.js'` won't work. It's actually a syntax error. To re-export the default export, we must mention it explicitly `{default as ...}`, like in the example above.
|
||||||
|
|
||||||
Also, there's another oddity: `export * from './user.js'` re-exports only named exports, exluding the default one. Once again, we need to mention it explicitly.
|
Also, there's another oddity: `export * from './user.js'` re-exports only named exports, excluding the default one. Once again, we need to mention it explicitly.
|
||||||
|
|
||||||
For instance, to re-export everything, two statements will be necessary:
|
For instance, to re-export everything, two statements will be necessary:
|
||||||
```js
|
```js
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue