Skip to content

Commit 6180840

Browse files
authored
Merge pull request #3262 from gregorianrants/patch-7
Update part4a.md
2 parents 134e929 + 8e2ad04 commit 6180840

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/content/4/en/part4a.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,6 @@ app.use('/api/notes', notesRouter)
391391
392392
Now the exported "thing" (in this case a router object) is assigned to a variable and used as such.
393393
394-
</div>
395-
396394
#### Finding the usages of your exports with VScode
397395
398396
VScode has a handy feature that allows you to see where your modules have been exported. This can be very helpfull for refactoring, say for example you decide to spilt a function in to 2 seperate functions, your code could break if you don't modify all the usages. This is difficult if you dont know where they are. However you need to define your exports in a particular way for this to work.
@@ -401,6 +399,10 @@ If you right click on a variable, in the location it is exported from and select
401399
402400
The nature of VS code bleeding into how you write your code is probably not ideal, so you need to decide yourself if the trade off is worthwhile.
403401
402+
</div>
403+
404+
405+
404406
<div class="tasks">
405407
406408
### Exercises 4.1.-4.2.

0 commit comments

Comments
 (0)