All jobs / Frontend / web developer / Tooling

Frontend / web developer interview question · 1–3 years

Fast Refresh resets a component's state on every edit. What usually caused it?

The strongest answer

The file exports a component plus other values in a way that breaks the refresh contract — split the file; don't run side effects at module scope

Why it works

Vite / React Fast Refresh remounts when the module is not a clean component export. That's the interview detail.

What a good answer covers

Answers that fall short

Who gets asked this

More Tooling questions