Skip to content

Commit 709d80f

Browse files
authored
Update defaultIsBad.md
1 parent 5fd5f2a commit 709d80f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/tips/defaultIsBad.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ import {Foo} from "./foo";
3232

3333

3434
> **Bonus points**: You even get autocomplete at this cursor location
35+
3536
```ts
3637
import {/*here*/} from "./foo";
3738
```
3839

3940
> **Bonus points**: Better commonJs experience
41+
4042
Also its makes for a horrible experience for commonjs users who have to `const {default} = require('module/foo');` instead of `const {foo} = require('module/foo')`

0 commit comments

Comments
 (0)