Understanding Hot Module Replacement (HMR)

You’ve changed one line of code, hit save, and watched your app update instantly,  no refresh, no state loss. Feels like magic, right?