Skip to content
DevTrail

React Interview Prep

Frequently asked React interview questions up to React 19.2, ending with a full mock interview.

modules
6
topics
56
exercises
100
of practice
24 h 32 min

About this course

Prepare for frontend interviews: concept questions with model answers, "what does this log?" puzzles on rendering and effects, React 19 features (Actions, useActionState, useOptimistic, use(), Server Components, Activity, useEffectEvent), hands-on coding rounds you solve in the browser, and a final timed mock interview.

What you'll learn

6 modules and 56 topics. Every topic has short lessons, a quiz, hands-on exercises checked in your browser, and interview questions.

  1. 1Core Concepts & Rendering

    JSX, the virtual DOM and its trade-offs, reconciliation and Fiber, keys, props vs state, one-way data flow and Flux, what triggers a re-render, batching, and forms.

    • JSX, Elements & Components
    • Virtual DOM, Reconciliation & Keys
    • The Virtual DOM: How It Works and Its Trade-offs
    • React Fiber: Interruptible Rendering
    • Props vs State, One-Way Data Flow & Lifting State
    • Flux and One-Way Data Flow
    • What Triggers a Re-render (and StrictMode)
    • State as a Snapshot & Automatic Batching
    • Controlled vs Uncontrolled Inputs & Synthetic Events
  2. 2Hooks Deep Dive

    Rules of hooks, stale closures, effect timing and cleanup, Strict Mode, refs, layout effects, context and custom hooks, concurrent hooks and useId.

    • Rules of Hooks, useState & useReducer
    • Stale Closures
    • useEffect: Dependencies, Cleanup & Timing
    • You Might Not Need an Effect & useLayoutEffect
    • useRef, DOM Refs & useImperativeHandle
    • useContext & Custom Hooks
    • useId, useSyncExternalStore, useTransition & useDeferredValue
    • useId: Stable, SSR-Safe IDs
  3. 3Performance, Patterns & Architecture

    memo/useMemo/useCallback, the React Compiler, code splitting, error boundaries, component patterns, portals and refs, state management, Strict Mode, debugging, testing and accessibility, SSR/SSG/ISR and i18n.

    • memo, useMemo, useCallback & Profiling
    • React Compiler
    • Code Splitting, Suspense, Error Boundaries & Portals
    • Component Patterns: HOCs, Render Props, Compound & Controlled APIs
    • Portals, Event Bubbling and Passing Refs
    • Choosing State Management
    • Strict Mode: What It Checks and Why
    • Debugging React Apps
    • Testing with React Testing Library & Accessibility
    • SSR, Hydration & Hydration Mismatches
    • Static Generation, ISR and SSR Compared
    • Internationalization (i18n) in React
  4. 4React 19 (19.0 → 19.2)

    Actions, useActionState, useFormStatus, useOptimistic, use(), ref as a prop, metadata, Server Components and Server Functions, removed APIs, Activity and useEffectEvent.

    • Actions & Async Transitions
    • useActionState & useFormStatus
    • useOptimistic: Optimistic UI
    • use(): Promises and Context
    • Ref as a Prop, Ref Cleanup, <Context> Provider
    • Metadata, Stylesheets, Scripts & Preloading
    • Server Components & Server Functions
    • Breaking Changes & Migrating to React 19
    • React 19.1 & 19.2: Owner Stacks, Activity, useEffectEvent
  5. 5Hands-on Coding Rounds

    Live-coding problems from real frontend interviews: React components and hooks in a sandbox, plus JavaScript utilities with auto-graded tests.

    • Debounced Search with a useDebounce Hook
    • Data Fetching: Loading, Errors & Race Conditions
    • Todo App with useReducer and Filters
    • Infinite Scroll with IntersectionObserver
    • Accessible Modal with a Portal
    • Star Rating Component (Controlled + Keyboard)
    • Compound Components: Tabs
    • Autocomplete with Keyboard Navigation
    • Accordion Component (Single/Multiple + Accessible)
    • Sortable, Filterable Data Table with Pagination
    • Implement debounce
    • Implement throttle
    • Implement shallowEqual (React.memo semantics)
    • Implement memoizeOne and memoize
    • Implement a Redux-like createStore
    • Implement classNames()
    • Implement createElement + renderToString
  6. 6Final Mock Interview

    A timed, mixed mock interview: output questions across rendering, hooks, effects and React 19, concept questions with model answers, and an auto-graded coding round.

    • Final Mock Interview