React Live Coding Round
Live coding evaluates how you clarify, model state, choose semantics, narrate trade-offs, debug, adapt requirements, and preserve testabilityβnot only whether the final component renders.
Round formatβ
Task 1 β searchable user listβ
Build a labeled search input, user list with stable IDs, empty state, and name/email filtering.
Do not create Effect-synchronized filtered state merely to store a derived list.
Task 2 β editable todo listβ
Implement add/toggle/delete/edit plus all/active/completed filtering.
A late βundo last actionβ requirement is a good reason to reconsider transition modeling and possibly introduce reducer/history state rather than stacking unrelated variables.
Task 3 β reusable dialogβ
Requirements include portal rendering, accessible title, Escape, focus entry, focus restoration, backdrop behavior, and controlled/uncontrolled API discussion.
Discuss what belongs in the design-system primitive versus the product consumer.
Task 4 β diagnose request-race codeβ
function Profile({ userId }) {
const [user, setUser] = useState(null);
const [loading, setLoading] = useState(false);
useEffect(() => {
setLoading(true);
fetch(`/api/users/${userId}`)
.then(r => r.json())
.then(data => {
setUser(data);
setLoading(false);
});
}, [userId]);
if (loading) return <p>Loading...</p>;
return user ? <ProfileView user={user} /> : null;
}
If the product later wants stale content to remain visible, model that UX intentionally rather than clearing state by reflex.
Task 5 β form mutationβ
Build title input, validation, pending, server error, success, and accessible feedback.
Debugging mini-roundβ
Given a draft reset Effect depending on a whole document object, ask whether object identity is semantically meaningful, whether document.id is the real identity, or whether a keyed editor better expresses βnew document means fresh draft.β
Late requirement changesβ
A strong interviewer changes one condition: keyboard support, controlled mode, server persistence, optimistic updates, 100k rows, hidden-view state preservation, SSR/hydration, analytics, or testability.
Scoring rubricβ
| Dimension | Weight |
|---|---|
| Correctness | 25% |
| State model | 20% |
| React reasoning | 15% |
| Accessibility | 10% |
| Debugging | 10% |
| Communication | 10% |
| Adaptability | 10% |
Strong behaviorβ
Avoid synchronized state copies, Effect-hidden business logic, inaccessible custom controls, automatic memoization everywhere, and silent coding with no explanation of decisions.