React Interview Preparation Guide
22+ Q&A covering React hooks, component patterns, performance, state management, forms, testing, and internals
Topicsβ
Hooksβ
| File | Topics | Difficulty |
|---|---|---|
| useState | State initialization, functional updates, lazy init | π’ |
| useEffect | Side effects, cleanup, dependency array | π‘ |
| useContext & useReducer | Context API, complex state, dispatch patterns | π‘ |
| useCallback & useMemo | Memoization, referential equality, performance | π‘ |
| useRef | DOM access, mutable values, timers | π’ |
| useReducer | Reducer pattern, complex state transitions | π‘ |
| Custom Hooks | Encapsulating logic, common patterns | π‘ |
Component Patternsβ
| File | Topics | Difficulty |
|---|---|---|
| Composition | Children, render props, slots, inversion of control | π‘ |
| HOC | Higher-order components, when to avoid | π‘ |
| Render Props | Function-as-child, when to use vs hooks | π‘ |
| Error Boundaries | Catching errors, fallback UI, React 18 | π‘ |
| Code Splitting | React.lazy, Suspense, route splitting | π‘ |
Internals & Renderingβ
| File | Topics | Difficulty |
|---|---|---|
| Virtual DOM & Reconciliation | Diffing, keys, commit phase | π‘ |
| Fiber Architecture | Concurrent rendering, time-slicing, priority | π΄ |
| Rendering Optimization | React.memo, profiling, avoid re-renders | π‘ |
| Component Basics | Functional vs class, JSX, createElement | π’ |
| Lifecycle Methods | Mount/update/unmount, hooks equivalent | π‘ |
State Managementβ
| File | Topics | Difficulty |
|---|---|---|
| State Management | State vs props, lifting state, local vs global | π‘ |
| Context API | Performance pitfalls, splitting contexts | π‘ |
| Redux & Zustand | Store patterns, selectors, when to use | π‘ |
| Concurrent Features | useTransition, useDeferredValue, batching | π΄ |
Data & Formsβ
| File | Topics | Difficulty |
|---|---|---|
| Forms | Controlled vs uncontrolled, React Hook Form | π‘ |
| Events | Synthetic event system, delegation, cleanup | π‘ |
| Suspense & Data Fetching | Boundary architecture, transitions | π΄ |
| SSR | Hydration, renderToPipeableStream, CSR vs SSR | π΄ |
| Server Components | RSC, App Router, zero bundle | π΄ |
Quality & Toolingβ
| File | Topics | Difficulty |
|---|---|---|
| Testing | React Testing Library, accessible queries, mocking | π‘ |
| TypeScript | Props typing, generics, utility types | π‘ |
| Security | XSS, CSRF, token storage, CSP | π‘ |
| Styling | CSS Modules, CSS-in-JS, Tailwind, performance | π’ |
| Routing | React Router v6, protected routes, auth | π‘ |
| Performance | Code splitting, Profiler, metrics | π‘ |
Most Frequently Askedβ
- useState & useEffect fundamentals (βββββ)
- Component re-rendering mechanics (βββββ)
- useCallback vs useMemo (ββββ)
- Context API patterns (ββββ)
- React.memo optimization (ββββ)
Content from Frontend-Master-Prep-Series β 03-react