60 curated questions graded from Foundations (Easy) to Practical Patterns (Medium) and Internals & Architecture (Hard).
60
60
0
5 / Level
Foundations & Core Concepts
const ThemeContext = createContext('light'); // default value
<ThemeContext.Provider value="dark">
<Toolbar /> // reads 'dark'
</ThemeContext.Provider>
Consumer (modern):
const theme = useContext(ThemeContext);
Legacy <ThemeContext.Consumer>{v => ...}</ThemeContext.Consumer> still exists but hooks replaced it.
The default value only applies when NO provider exists above — useful for testing and optional contexts.
value changes — reference changes matter, not deep content.value={{user, setUser}} inline object → new identity every render of provider parent → ALL consumers re-render constantly.
Mitigations:useMemo the provided object.<UserCtx.Provider value={state}>
<UserDispatchCtx.Provider value={dispatch}>...
Components needing only actions subscribe to a stable dispatch and skip re-renders caused by state changes.
Get instant access to all 20 questions, in-depth model answers, code sandboxes, and all 27+ technologies for a single one-time payment.
Core concepts, definitions, basic syntax, and first principles expected in round 1 screening.
Real-world mechanisms, state management, edge cases, performance trade-offs, and practical coding.
Deep runtime internals, memory models, distributed design, concurrency failure modes, and architectural decisions.