Hot Module ReplacementHMR allows you to update code in your development server and seeing changes in the browser without losing state.
Hot Module Replacement: How to Use It Manually
HMR works automagically in almost all popular frontend frameworks. It is, however, possible to control HMR manually. How and why is shown in this Toilet Paper.