Back to Topics

React Interview Questions

MCQ Quiz · All Difficulty Levels

1 · Choose Difficulty

2 · Number of Questions

3 · Timer per Question

Launch Quiz

Practice React interview questions with our comprehensive MCQ quiz covering everything interviewers ask about. Topics include JSX fundamentals, all major hooks (useState, useEffect, useCallback, useMemo, useRef, useContext, useReducer), the virtual DOM and reconciliation algorithm, controlled vs uncontrolled components, React.memo and performance optimization, Context API, React.lazy and code splitting, error boundaries, React 18 automatic batching, and concurrent features. Questions are organized into four career-aligned difficulty levels: Trainee covers JSX, props, and basic state; Junior Dev goes deeper into custom hooks, forwardRef, and performance patterns; Mid Level tests React Fiber, stale closures, and advanced component patterns; Senior Dev covers concurrent mode, Server Components, and architecture decisions. Every question includes an instant explanation written to close knowledge gaps, not just confirm what you already know. Whether you are applying for a junior frontend role or a senior engineer position at a product company, consistent timed MCQ practice is the fastest path from studying React to confidently answering React questions under pressure.

What this React quiz covers

Trainee

  • JSX and what it compiles to
  • Props, state and controlled form inputs
  • Conditional rendering and Fragments
  • useRef basics and when components re-render

Junior Developer

  • React.memo, useMemo and dependency arrays
  • useEffect vs useLayoutEffect
  • forwardRef, React.lazy and Suspense boundaries
  • Keys and automatic batching in React 18

Mid-Level

  • Stale closures in hooks
  • startTransition and useDeferredValue
  • Higher-order components and pure components
  • Controlled vs uncontrolled components, Suspense for data

Senior

  • Hydration and selective hydration
  • Concurrent rendering and the Fiber work loop
  • Streaming SSR, islands and partial prerendering
  • useSyncExternalStore and the scheduler

Study guide: Mastering React Hooks: The Complete Interview Guide

Companies that ask React questions: Microsoft, Meta, Infosys

Sample React Interview Questions

Ten representative questions from our full bank of React MCQs across all difficulty levels. Each one shows the correct answer and a short explanation. The interactive quiz above shuffles options and tracks your time per question.

  1. TraineeQ1

    What does JSX compile to?

    • HTML strings
    • React element creation calls Correct
    • CSS rules
    • Database queries
    Why: JSX is syntax sugar that compiles to React.createElement calls which create React elements.
  2. TraineeQ2

    Which hook is used to store component state?

    • useEffect
    • useMemo
    • useState Correct
    • useRef
    Why: useState returns a state value and a setter function that schedules a re-render.
  3. TraineeQ3

    What must items in a rendered list usually include?

    • A key prop Correct
    • A title attribute
    • A data-id attribute
    • A className prop
    Why: Keys help React identify which list items changed, were added, or removed between renders.
  4. TraineeQ4

    What does React.Fragment allow you to do?

    • Add scoped CSS
    • Create context
    • Lazy-load components
    • Return multiple elements without adding an extra DOM node Correct
    Why: Fragment groups multiple children without introducing a wrapper element in the DOM.
  5. Junior DevQ5

    What does React.memo do?

    • Skip re-rendering when props haven't shallowly changed Correct
    • Memoize a value inside an effect
    • Cache the entire module
    • Persist state across sessions
    Why: React.memo wraps a component and bails out of re-rendering if props are shallowly equal.
  6. Junior DevQ6

    What does the useEffect cleanup function do?

    • Saves component state
    • Runs before the next effect fires and on unmount, cleaning up subscriptions or timers Correct
    • Resets state to initial value
    • Flushes pending renders
    Why: The cleanup function prevents memory leaks by cancelling subscriptions, timers, or async operations.
  7. Junior DevQ7

    What does useContext return?

    • A Provider component
    • The context factory function
    • The current value provided by the nearest matching Provider Correct
    • A dispatch function
    Why: useContext reads the value passed to the closest Provider above in the tree.
  8. Mid LevelQ8

    What is a stale closure in React hooks?

    • A memory leak in components
    • A closure that is garbage collected
    • A callback that captures variables from a previous render instead of the current one Correct
    • An effect that runs too often
    Why: Stale closures occur when an effect or handler captures old state or props instead of the current values.
  9. Mid LevelQ9

    What does the reconciliation algorithm do?

    • Compares previous and next virtual DOM trees to determine minimal DOM updates Correct
    • Fetches data from the server
    • Manages component lifecycle
    • Handles event delegation
    Why: React's reconciler diffs virtual DOM trees and produces a minimal set of real DOM operations.
  10. Senior DevQ10

    What is hydration in React's SSR context?

    • Sending data from server to client
    • Prerendering to static HTML
    • Compressing the React bundle
    • Attaching client-side React event handlers to server-rendered HTML Correct
    Why: Hydration makes server-rendered HTML interactive by connecting the React tree and binding event handlers.

This is a static preview of 10 questions. Take the full interactive React quiz with timed rounds, all 25 questions per level, and instant score tracking.

Frequently Asked Questions: React Interviews

Common questions developers ask when preparing for React technical interviews.

What React topics come up most in technical interviews?

Hooks are the most common topic, specifically useState, useEffect, useCallback, useMemo, and custom hooks. Beyond hooks, interviewers regularly ask about the virtual DOM and reconciliation, controlled vs uncontrolled components, React.memo and performance optimization, the Context API, and component architecture decisions. Senior roles also test React Fiber, concurrent features, and Server Components.

What is the difference between props and state in React?

Props are read-only inputs passed from a parent component to a child, the child component cannot modify them. State is internal, mutable data owned by a component that can change over time via the setter function returned by useState. When state changes, React schedules a re-render; when props change, the child re-renders with the new values passed down from the parent.

How long does it take to prepare for a React technical interview?

Two to four weeks of focused practice is typically sufficient for junior and mid-level roles if you already have working React experience. Focus on understanding hooks deeply (not just their API but why they work the way they do), reconciliation, and common performance patterns. Daily timed MCQ practice alongside building small projects is the most effective combination.

Is React still in demand for developer roles in 2026?

Yes. React remains the most widely used frontend library globally, consistently topping Stack Overflow Developer Surveys and npm download charts. Demand for React developers at startups, scale-ups, and enterprises remains very high. React 18 and the emerging React 19 with Server Components have expanded its use into full-stack patterns, making React knowledge even more valuable for modern web development roles.

What level of React knowledge is expected for a mid-level developer role?

Mid-level React roles typically expect comfortable use of all core hooks, the ability to write and reason about custom hooks, understanding of memoization with React.memo, useMemo, and useCallback, familiarity with at least one state management approach (Context API, Redux Toolkit, or Zustand), and some experience with performance profiling using React DevTools. You should be able to explain why your code is structured the way it is.