Skip to content

Commit 2277189

Browse files
aviyacohenmontogeek
authored andcommitted
docs(guides): Update hot-module-replacement.md (#2418)
* Update hot-module-replacement.md Only added a parenthesis tip that will hopefully help future readers getting stuck on the same part I did. The tutorial updates the button.onclick printMe() only a couple of steps after enabling HMR and a focused user might think the code is not working when the output from the button click to the console.log does not update with the HMR changes. * Update hot-module-replacement.md
1 parent da1752e commit 2277189

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/content/guides/hot-module-replacement.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ contributors:
1616
- caryli
1717
- xgirma
1818
- EugeneHlushko
19+
- aviyacohen
20+
1921
related:
2022
- title: Concepts - Hot Module Replacement
2123
url: /concepts/hot-module-replacement
@@ -103,7 +105,7 @@ __index.js__
103105
+ }
104106
```
105107

106-
Start changing the `console.log` statement in `print.js`, and you should see the following output in the browser console.
108+
Start changing the `console.log` statement in `print.js`, and you should see the following output in the browser console (don't worry about that `button.onclick = printMe()` output for now, we will also update that part later).
107109

108110
__print.js__
109111

0 commit comments

Comments
 (0)