Slide 28
Slide 28 text
Hot Reloading
➔ JS frameworks has a nice feature: hot
reloading (sometimes called HMR, for
Hot Module Reloading)
➔ With Vite, Webpack, etc, when you
change some code in your editor, the
code is compiled in the background then
“pushed” to the browser, which instantly
updates
➔ This requires watching for file changes,
and a persistent connection between the
server and the browser
(e.g., WebSockets)