← Back to blog

React interview questions and answers

React interview questions and answers — cover from Greenroom, the AI mock interviewer

React is the default frontend framework in interviews, and the questions cluster around a few areas: how rendering works, hooks, state management, and performance. Knowing JSX isn't enough — interviewers probe whether you understand why React re-renders and how to control it. Here are the React interview questions that actually get asked, with answers. (See also our JavaScript and frontend guides.)

Fundamentals

Hooks (the core of modern React)

React interview topics — hooks, state, virtual DOM, useEffect, performance
React rounds test how rendering and hooks actually work, not just JSX.

Performance & patterns

The core truth: React interviews reward understanding the render model — when and why components re-render, and how hooks like useEffect and useMemo control that. Candidates who can debug an unnecessary re-render out loud stand out far more than those who just list hook names.

How to prepare

React rounds often mix concept questions with "how would you fix this bug" discussions, all verbal. Practise explaining rendering and hooks out loud. Greenroom runs spoken technical interviews that probe your reasoning and give feedback. Pair it with our JavaScript and frontend guides.

Frequently asked questions

What are the most common React interview questions?

Common React questions cover the virtual DOM and reconciliation, props vs state, controlled vs uncontrolled components, keys in lists, hooks (useState, useEffect, useMemo, useCallback, useRef and the rules of hooks), what causes unnecessary re-renders and how to prevent them, React.memo, Context, and state management options like Redux.

What is the difference between useMemo and useCallback?

Both memoize to avoid recomputation between renders. useMemo memoizes a computed value — it returns the cached result of a function unless its dependencies change. useCallback memoizes a function reference itself, so the same function identity is preserved between renders, which is useful when passing callbacks to memoized child components to prevent unnecessary re-renders.

What causes unnecessary re-renders in React?

Components re-render when their state or props change, when their parent re-renders, or when context they consume updates. Common causes of unnecessary re-renders include passing new object or function references on every render, not memoizing expensive children, and overly broad context. Fixes include React.memo, useMemo, useCallback and splitting or narrowing context.

How should I prepare for a React interview?

Focus on understanding React's render model — when and why components re-render — and how hooks like useEffect, useMemo and useCallback control it, rather than just listing hook names. Practise explaining rendering and debugging re-renders out loud, ideally with a voice-based mock interview, since React rounds often mix concept questions with verbal debugging discussions.

React rounds reward understanding the render model out loud. Greenroom runs spoken technical interviews that probe your reasoning and give feedback. Free to start.