- Fast Refresh preserves React local state in function components (and Hooks) by default.
- Fast Refresh always remounts class components without preserving state. This ensures it works reliably.
- Fast Refresh automatically retries rendering after a file is saved.
// @refresh reset
comment can be used to reset the React state on every edit.