Skip to content
Preptima

React interview questions

Reconciliation, hook rules and dependency correctness, server components, and state management.

5 questions in Frontend Engineering.

easy1

easyConcept

Why does my useEffect run twice on mount?

React useEffect runs twice on mount in development when Strict Mode deliberately runs one extra setup-cleanup-setup cycle. It does not happen in production builds, and the fix is to write the cleanup the effect was missing rather than to guard the effect or remove Strict Mode.

5 minentry, mid

medium2

hard2

hardScenarioDesign

How do you implement local-first collaborative editing without the unbounded memory growth inherent to CRDTs crashing the client?

Assess the candidate's expertise in distributed systems within the browser, focusing on Conflict-free Replicated Data Types, memory optimisation, and peer-to-peer state synchronisation. Use this frontend answer to show the decision, trade-off, and evidence rather than a memorised definition. It also connects architecture to the point an interviewer is testing.

2 minsenior, staff