React Interview Questions List: 44 Questions With Answers
React interview questions in 2026 cluster into four buckets: hooks (useState, useEffect, useMemo, useCallback), the rendering model (virtual DOM, reconciliation, keys), state and data flow (controlled vs uncontrolled inputs, Context vs external stores), and performance plus SSR/hydration. The new-grad trap is reciting what a hook does without explaining when it re-runs or what breaks if a dependency array is wrong. This guide gives the question banks, the answer outlines, and the trade-off framing that separates a recall answer from a hire answer.
By Sam K., Founder, InterviewChamp.AI · Last updated
35 min readTL;DR: React interviews mostly test four areas: hooks, the rendering model, state and data flow, and performance with SSR and hydration. The round usually turns on whether you can explain what breaks when you get something wrong, not just what a hook does. Drill the useEffect dependency array and stale closures first, learn why index keys and reflex memoization cause bugs, and build one small app that touches every concept so your answers come from code you wrote yourself.
What React interviews test in 2026#
React interview questions in 2026 cover four things, in roughly this order:
- Hooks. Do you understand the core hooks well enough to explain when they re-run?
- The rendering model. Can you describe the virtual DOM, reconciliation and keys without hand-waving?
- State and data flow. Do you reason correctly about controlled vs uncontrolled inputs, and Context vs an external store?
- Performance and SSR/hydration. Can you talk about them like someone who has shipped a slow page and fixed it?
The hooks floor is non-negotiable. The trade-off layer is where the round is won or lost.
Most new grads miss this part. The interviewer isn't testing whether you can list what useEffect does. They're testing whether you know what breaks when you get it wrong.
Picture a candidate who can recite the hook signature but freezes on "what happens if you leave a value out of the dependency array." That candidate reads as someone who studied the docs but never shipped a bug and fixed it. That gap is the single biggest filter at the entry-level React interview.
The 2025-2026 hiring cycle tightened, and frontend interviews tightened with it. React is still the dominant library for new-grad frontend and full-stack roles. That means the question bank is well-worn, and interviewers have heard every memorized answer. You won't stand out by knowing more definitions. You stand out by reasoning about trade-offs out loud.
Here is the distribution of React question types most new-grad candidates report seeing in their loops:
| Topic | Share of questions | What it includes |
|---|---|---|
| Hooks | 35-45% | useState, useEffect, useMemo, useCallback, custom hooks, the rules of hooks |
| Rendering model | 20-30% | Virtual DOM, reconciliation, keys, why a component re-renders |
| State and data flow | 15-25% | Controlled vs uncontrolled, lifting state, Context vs external store |
| Performance and SSR/hydration | 10-20% | Wasted renders, memoization, hydration mismatch, code splitting |
Two patterns stand out.
First, hooks show up in every loop. The dependency-array and stale-closure failure modes are honestly the best use of your drilling time.
Second, the performance and SSR slice is the one most candidates under-prepare, and it disproportionately decides senior-leaning rounds. A candidate who nails twelve hooks questions but can't explain a hydration mismatch usually caps out at the entry tier. A candidate who reasons cleanly about wasted renders and measurement-first memoization reads as someone ready for real production work.
React is, at heart, a UI library. It maps your application state to a description of the DOM, then efficiently updates the real DOM to match. Almost every interview question is a different angle on that one sentence:
- How do you hold state? (hooks)
- How does React turn state into DOM? (reconciliation)
- How do you keep that mapping correct? (keys, controlled inputs)
- How do you keep it fast? (memoization, SSR/hydration)
How this page is organized: the core topic sections come first (hooks, rendering, state, performance, useEffect pitfalls, SSR). After them come questions those sections don't cover: fundamentals, more hooks and state comparisons, data fetching scenarios, then testing, debugging and TypeScript. Live coding, behavioral questions, a prep plan and common mistakes close it out. If your basics feel shaky, jump to the fundamentals section first and come back.
Key terms#
Get these terms exactly right before the interview. Interviewers use precise definitions as a litmus test. A fuzzy answer on any of them signals that you learned React by copying snippets rather than by understanding the model.
| Term | What it means |
|---|---|
| JSX | Markup-style syntax you write inside JavaScript files. A compiler converts it into function calls that build React elements. |
| Props | Read-only inputs a parent passes to a child component. |
| State | Data a component owns that, when updated through its setter, triggers a re-render. |
| Virtual DOM | A lightweight in-memory tree of plain objects describing what the UI should look like. React diffs it against the previous tree to compute the minimum real-DOM changes. |
| Reconciliation | The algorithm React runs to compare the new virtual DOM tree with the previous one and apply only the necessary mutations to the real DOM. |
| Key | A stable identifier on a list item. It tells React which element is the same item across renders, so React can reorder and reuse DOM nodes instead of recreating them. |
| Hook | A built-in or custom function, named with a use prefix, that gives a function component access to state, effects and other React features. |
| Effect | Code that runs after render to synchronize a component with something outside React, such as the network, a timer or a subscription. |
| Controlled component | A form input whose value is driven by React state. The component becomes the single source of truth and re-renders on every keystroke. |
| Stale closure | A bug where a function (often inside an effect or callback) captures an outdated value from an earlier render because that value was left out of the dependency array. |
| Hydration | The client-side step that attaches event listeners and state to server-rendered HTML. It turns static markup into an interactive app without re-creating the DOM. |
| Portal | A way to render a component's output into a different DOM node than its parent's, while it stays part of the same React tree. |
| Suspense | A component that shows a fallback while something inside it, such as a lazy-loaded chunk, isn't ready yet. |
Three more terms will come up in your spoken answers.
Memoization is caching the result of an expensive computation, or a function reference, so it's reused across renders unless its inputs change. That's the job of useMemo and useCallback.
Referential equality is whether two values are the same object in memory (===). It matters because React.memo and dependency arrays compare props and dependencies by reference. A freshly created object or array counts as changed even when its contents look identical.
Lifting state up is moving shared state to the closest common ancestor of the components that need it. They then read from one source of truth instead of holding diverging copies.
React hooks interview questions#
Hooks are the bulk of any modern React loop. The questions below cover the four core hooks plus the failure modes interviewers love. Learn the answer outlines, then say them in your own words.
What does useState return, and why are updates asynchronous?
Show sample answerHide answerSay yours out loud first, then check.
useState returns a pair: the current state value and a setter function. Calling the setter schedules a re-render with the new value. It does not mutate the variable in place.
Updates are batched and applied asynchronously, so reading the state variable right after calling the setter gives you the old value, not the new one. When the next value depends on the previous one, use the functional update form, which passes you the latest state, instead of reading the closed-over variable. The interview signal is knowing that React batches setter calls made together, such as several calls in the same event handler, into one render.
Walk me through useEffect: when does it run, and what is cleanup for?
Show sample answerHide answerSay yours out loud first, then check.
useEffect runs a side effect after the component renders and commits to the DOM. The dependency array controls re-runs:
- No array: the effect runs after every render.
- Empty array: it runs once after mount.
- Listed values: it runs after any render where a listed dependency changed.
The optional function you return from the effect is the cleanup. React calls it before the next run of the effect and on unmount. Cleanup is how you cancel a subscription, clear a timer or abort a fetch, so you don't leak resources or update an unmounted component. The classic mistake is forgetting cleanup on a subscription, which leaves listeners attached after the component is gone.
What is useMemo and when is it worth using?
Show sample answerHide answerSay yours out loud first, then check.
useMemo memoizes the result of a computation. You pass a function and a dependency array. React recomputes the value only when a dependency changes, and otherwise returns the cached value.
Use it for two jobs. One is a genuinely expensive calculation, like sorting or filtering a large list or running a heavy transform. The other is keeping a stable object or array reference, so a memoized child or a downstream dependency array doesn't see a new reference every render.
The honest framing: don't wrap every value in useMemo. The memoization itself has a cost, and for cheap computations it's slower than just recomputing. Measure, then memoize the proven hot path.
What is useCallback and how is it different from useMemo?
Show sample answerHide answerSay yours out loud first, then check.
useCallback memoizes a function reference instead of a computed value. useCallback(fn, deps) is equivalent to useMemo(() => fn, deps).
The point is referential stability. Say you pass a callback to a child wrapped in React.memo. A new function reference on every parent render would defeat the memoization and re-render the child anyway. useCallback keeps the reference stable across renders unless a dependency changes, so the memoized child correctly skips re-rendering.
The interview signal is knowing that useCallback is pointless unless the function is a dependency somewhere or a prop to a memoized child. Otherwise it adds cost for nothing.
What are the rules of hooks and why do they exist?
Show sample answerHide answerSay yours out loud first, then check.
There are two rules:
- Call hooks only at the top level of a component or a custom hook, never inside loops, conditions or nested functions.
- Call hooks only from React function components or custom hooks, never from regular JavaScript functions.
The rules exist because React tracks hook state by call order, not by name. If a hook is called conditionally, the order shifts between renders and React associates state with the wrong hook. The follow-up is usually "how would you do something conditionally then?" The answer: the condition goes inside the hook, not around it.
How do you write a custom hook, and what makes it a hook?
Show sample answerHide answerSay yours out loud first, then check.
A custom hook is any function you give a use prefix that calls other hooks inside it. It lets you extract and reuse stateful logic (a data fetch, a subscription, form handling) across components without a wrapper component.
What makes it a hook is that it calls hooks and follows the rules of hooks. The use prefix is the convention that lets tooling enforce those rules. The interview signal is understanding that a custom hook shares logic, not state. Two components calling the same custom hook each get their own independent state.
What is the difference between useMemo, useCallback, and React.memo?
Show sample answerHide answerSay yours out loud first, then check.
| Tool | What it caches |
|---|---|
useMemo | A value |
useCallback | A function reference |
React.memo | A component's render, skipped when its props are referentially equal to the previous render |
React.memo is a higher-order component. The three work together: React.memo goes on the child, and useCallback and useMemo go on the parent to keep the props passed to that child referentially stable. Using React.memo without stabilizing the props is a common no-op, because the parent hands the memoized child fresh object and function references every render.
React rendering model questions: virtual DOM, reconciliation, keys#
This bucket tests whether you understand how React turns state into DOM. Get the vocabulary precise. Interviewers can tell memorized answers from understood ones in one follow-up.
What is the virtual DOM and why does React use it?
Show sample answerHide answerSay yours out loud first, then check.
The virtual DOM is an in-memory tree of plain JavaScript objects describing what the UI should look like. When state changes, React builds a new virtual DOM tree and diffs it against the previous one. It then computes the minimal set of real DOM operations needed to make the actual DOM match.
Direct DOM manipulation is expensive because the browser may recalculate layout and repaint. Batching changes through a diff lets React touch the real DOM as little as possible.
The nuance worth stating: the virtual DOM isn't automatically "fast." It's a way to make declarative UI updates manageable and usually fast, and you can still write slow React by causing huge subtrees to re-render.
Explain reconciliation. How does React decide what to update?
Show sample answerHide answerSay yours out loud first, then check.
Reconciliation is the diffing algorithm. React compares the new tree to the old one node by node, and two heuristics keep it efficient:
- Different element types produce different trees. When an element's type changes, React tears down the old subtree and builds a new one rather than trying to diff across types.
- Keys mark stable children. Keys identify which children in a list stay the same across renders, so React can match, reorder and reuse them.
Without these heuristics, a general tree diff would be far more expensive. The takeaway for interviews: you help reconciliation by keeping element types stable and giving list children stable keys.
Why do keys matter, and why is the array index a bad key?
Show sample answerHide answerSay yours out loud first, then check.
Keys tell React which list items are the same item across renders. With stable keys, like a unique ID from your data, React moves and reuses DOM nodes when a list reorders instead of recreating them. That preserves component state and DOM focus.
Using the array index as a key breaks the moment the list can reorder, insert or delete, because an item's index changes while its identity does not.
The textbook bug: a list of inputs keyed by index keeps the wrong typed value after you delete or reorder a row. React matched each input to a position, not to an item. Use a stable unique ID, and reserve the index for a list that is static and never reorders.
What causes a component to re-render?
Show sample answerHide answerSay yours out loud first, then check.
A component re-renders in three cases:
- Its state changes.
- Its parent re-renders.
- A Context it consumes changes value.
The parent case is the one that surprises new grads. When a parent re-renders, all of its children re-render by default, whether or not their props changed, unless they are wrapped in React.memo. Props changing is not what triggers a child re-render. The parent rendering is.
That's why passing a fresh object or function to a memoized child still re-renders it, and why the fix involves referential stability, not just memoizing the child.
React state and data flow questions#
This bucket separates candidates who learned React as "components and props" from those who understand where state should live.
Controlled vs uncontrolled components: what is the difference and when do you use each?
Show sample answerHide answerSay yours out loud first, then check.
A controlled component drives its value from React state. The input reads value from state and writes to state in onChange, so React is the single source of truth. An uncontrolled component lets the DOM own its value, and you read it through a ref when you need it, typically on submit.
| Controlled | Uncontrolled | |
|---|---|---|
| Who owns the value | React state | The DOM |
| How you read it | From state, on every change | Through a ref, usually on submit |
| Good for | Instant validation, conditional disabling, formatting as the user types, keeping several fields in sync | Simple forms, file inputs (always uncontrolled), cases where re-rendering on every keystroke is a measurable cost |
In 2026 most production forms use a controlled approach through a form library that manages the state and validation for you. You get controlled behavior without re-rendering the whole form on every keystroke.
Here's a small controlled form with a submit handler:
function SignupForm({ onSignup }) {
const [address, setAddress] = useState('');
const isValid = address.includes('@');
function handleChange(event) {
setAddress(event.target.value);
}
function handleSubmit(event) {
event.preventDefault();
if (!isValid) return;
onSignup(address);
}
return (
<form onSubmit={handleSubmit}>
<input type="email" value={address} onChange={handleChange} />
<button type="submit" disabled={!isValid}>Sign up</button>
</form>
);
}
Note that isValid is computed during render rather than stored in state. Q20 explains why that matters.
Context vs an external state library: how do you choose?
Show sample answerHide answerSay yours out loud first, then check.
Context is dependency injection for the component tree. It's ideal for low-frequency, broadly read values: theme, current user, locale, feature flags. The catch is that every consumer re-renders when the Context value changes, and there's no built-in way to subscribe to just a slice.
An external store is built for frequent updates and selective subscription. Components subscribe through a selector to the specific slice they read, so only the components that depend on a changed slice re-render.
- Choose Context when the value changes rarely and is read widely.
- Choose an external store when state changes often, when many components read different slices, or when you need selectors to avoid re-rendering the whole subtree on every change.
If the interviewer asks about Redux, treat it as one well-known external store. Shared state lives in a single store, components dispatch actions, pure reducer functions compute the next state, and components read the slices they need through selectors. For a small app, local state, lifting state up and Context usually cover it. Learn the idea before the library: explaining why your shared state outgrew Context answers the real question, whichever store you name.
Here's the scenario table interviewers reason through, mapping a concrete state shape to the right tool:
| State to manage | How often it changes | Who reads it | Recommended approach |
|---|---|---|---|
| Theme (light/dark) | Rarely | Many components | Context |
| Current authenticated user | Rarely | Many components | Context |
| Form field values while typing | Every keystroke | One form subtree | Local useState or a form library, never Context |
| Shopping cart shared across pages | Moderately | Header, cart page, checkout | External store with selectors |
| Live cursor position / drag offset | Many times per second | One or two components | Local state or a ref, never Context |
| Server data (a fetched list) | On fetch / refetch | A few components | A data-fetching/cache library, not hand-rolled Context |
The pattern: rarely changing, widely read values go in Context. Fast-changing values go in local state or in a store with selectors. Server data belongs in a cache library that handles loading, caching and refetching for you.
What does "lifting state up" mean and when do you do it?
Show sample answerHide answerSay yours out loud first, then check.
Lifting state up means moving shared state to the closest common ancestor of the components that need it, then passing it down as props, setters included. You do it when two sibling components must stay in sync. A search box and a results list that both depend on the same query are the standard example.
The opposite move, pushing state down, is the performance fix. If only one small subtree uses a piece of state, keep that state inside that subtree, so changing it doesn't re-render the whole page. Knowing both directions, and knowing that "where does this state belong" is a design decision, is the senior signal here.
React performance interview questions#
Performance is the bucket that separates entry-tier from mid-level. You're graded on judgment: do you measure before you optimize, and do you understand why a memoization helps or doesn't?
How do you find and fix unnecessary re-renders?
Show sample answerHide answerSay yours out loud first, then check.
Measure first. Use the profiler to find which components render most often and why. The most common cause is a parent passing a new object, array or function reference to a child every render, which defeats React.memo on that child.
Fixes, in order:
- Push state down so fewer components re-render.
- Stabilize callbacks with
useCallbackand objects withuseMemo. - Wrap genuinely pure children in
React.memo. - Use a selector so a component subscribes only to the slice it reads.
The honest answer that lands in interviews: you don't memoize everything by reflex, because memoization has overhead. You profile, find the hot path, and memoize that.
When is React.memo a no-op or even harmful?
Show sample answerHide answerSay yours out loud first, then check.
React.memo skips a re-render only when the new props are referentially equal to the previous ones. If the parent passes a fresh inline object, array or arrow function every render, the props are never referentially equal. The memoized child re-renders anyway, and you've paid the comparison cost for nothing.
It's also wasteful in two other cases: components that almost always receive changed props, and trivially cheap components where the prop comparison costs more than the render it's trying to skip.
The rule for interviews: React.memo pays off on an expensive child whose props are usually stable. Pair it with useCallback and useMemo on the parent, or it does nothing.
What is code splitting and why does it help frontend performance?
Show sample answerHide answerSay yours out loud first, then check.
Code splitting breaks your bundle into smaller chunks that load on demand, instead of shipping the entire app in one file. React supports it through lazy-loaded components plus a fallback while a chunk loads. Teams typically split by route, so a user downloads only the code for the page they're on.
import { lazy, Suspense } from 'react';
const SettingsPage = lazy(() => import('./SettingsPage'));
function App() {
return (
<Suspense fallback={<p>Loading settings...</p>}>
<SettingsPage />
</Suspense>
);
}
Why it helps: for a new grad, the biggest frontend performance lever usually isn't render speed. It's how much JavaScript the browser has to download, parse and execute before the page is interactive. Splitting the bundle shrinks that initial payload and improves time-to-interactive, which is the metric hiring teams increasingly ask about.
React useEffect dependency pitfalls#
This gets its own section because it's the single most-tested failure mode in React interviews, and the one new grads get wrong most often.
What goes wrong with an incomplete dependency array?
Show sample answerHide answerSay yours out loud first, then check.
The effect captures values from the render in which it was created. If you omit a value the effect reads, the effect keeps using the stale value from an earlier render, even after that value changes. That's a stale closure.
A timer that reads a count but lists no dependencies will forever log the count from mount:
useEffect(() => {
const id = setInterval(() => {
console.log(count); // always the value from the first render
}, 1000);
return () => clearInterval(id);
}, []); // count is read but not listed
The fix comes in three flavors:
- List every value the effect reads.
- Use the functional updater form of a setter, so you don't need to read the current state at all.
- Restructure so the effect doesn't depend on the changing value.
The wrong fix, which interviewers will catch, is silencing the lint warning instead of addressing why the value is missing.
Why does my effect run twice, and what should I do about it?
Show sample answerHide answerSay yours out loud first, then check.
In development, React intentionally mounts, unmounts and remounts a component once, to surface effects that aren't resilient to being run twice. It's a development-only check and doesn't happen in production.
The right response isn't to suppress it. Write effects that clean up properly, so running twice is harmless: cancel the in-flight fetch, clear the timer, unsubscribe.
An effect that breaks when run twice in development will also break in production when a dependency changes and the effect re-runs for real. The double-run is a free test, not a bug to hide.
When should logic not be in an effect at all?
Show sample answerHide answerSay yours out loud first, then check.
A common new-grad anti-pattern is using useEffect to transform props into state, or to respond to a user event.
- Derived values: if a value can be computed during render from existing props or state, compute it during render. Don't store it in state and sync it with an effect.
- User actions: if something should happen in response to a click, put it in the event handler, not in an effect that watches for the change.
Effects are for synchronizing with systems outside React (the network, the DOM, a subscription, a timer), not for reacting to your own state changes. Knowing this trims half the effects out of a typical new-grad codebase, and it's a strong signal in an interview.
React SSR and hydration interview questions#
Server-side rendering is increasingly part of frontend loops, because the dominant React frameworks render on the server by default. You don't need to be an expert, but you do need to explain hydration and its failure mode.
What is SSR and why do teams use it?
Show sample answerHide answerSay yours out loud first, then check.
Server-side rendering generates a page's HTML on the server and sends it to the browser fully formed. Without it, the browser gets a near-empty HTML file and builds the page entirely with client JavaScript.
Teams use SSR for two reasons:
- The user sees content sooner, because the markup arrives ready to display.
- Crawlers and link previews get real HTML instead of an empty shell, which matters for SEO.
The trade-off is server cost and complexity, plus the hydration step on the client. The interview signal is knowing that SSR sends HTML first and interactivity second, and that most SSR bugs live in the gap between those two.
What is hydration and what is a hydration mismatch?
Show sample answerHide answerSay yours out loud first, then check.
Hydration is the client-side step where React takes the server-rendered HTML and attaches event handlers and state to it. That makes the page interactive without re-creating the DOM.
A hydration mismatch happens when the markup React produces on the client during that first render doesn't match the HTML the server sent. React detects the mismatch, discards the server markup for that subtree, re-renders it on the client and logs a warning.
Common causes:
- Rendering a timestamp, a random value, or anything based on
Date.now()on first render. - Reading
window,documentorlocalStorageduring the initial render, when they don't exist on the server. - Branching output on whether code runs on the server or the client.
How do you fix a hydration mismatch?
Show sample answerHide answerSay yours out loud first, then check.
Make the first client render produce byte-identical output to the server, then change it after mount.
For browser-only values, render a neutral placeholder on the server and on the first client render. Then read the real value in a useEffect, which runs only on the client after hydration, and update.
For values that are inherently different between server and client, defer them until after mount so they never take part in the hydration comparison.
The principle interviewers want: the server render and the first client render must agree. Anything that can only be known in the browser happens after hydration, not during it.
React fundamentals interview questions#
If any answer in the sections above felt like it skipped a step, the gap is probably here. These are the basics that everything else builds on.
What is JSX, and what happens to it before the browser runs it?
Show sample answerHide answerSay yours out loud first, then check.
JSX is the HTML-looking syntax you write in your component files. Browsers can't run it directly, so a compiler such as Babel or the TypeScript compiler turns each JSX tag into a function call that returns a React element. That element is a plain object describing the type, the props and the children.
Two follow-ups come up often. First, JSX is optional, though almost nobody writes React without it. Second, because JSX compiles to JavaScript, you can embed any JavaScript expression inside it, but not statements like if or for. That's why conditionals inside JSX use ternaries or &&.
Function components vs class components: when would you still see a class?
Show sample answerHide answerSay yours out loud first, then check.
Function components with hooks are the standard way to write new React code. Class components use lifecycle methods such as componentDidMount and componentWillUnmount, plus this.state and this.setState.
You'll still run into classes in two places:
- Older codebases. Be ready to read one and map its lifecycle methods to effects.
- Error boundaries. In plain React, a component that catches rendering errors in its children is still written as a class.
So you need to read classes more than write them. A good answer shows you can translate between the two styles, not that you prefer one.
What is a synthetic event, and how is it different from a browser event?
Show sample answerHide answerSay yours out loud first, then check.
React wraps native browser events in its own event object, the synthetic event. It exposes the same interface you'd expect, like preventDefault(), stopPropagation() and target, so your handlers behave consistently across browsers.
React handles events through its own system, attaching listeners near the root of your app rather than on every element. You write onClick in camelCase and pass a function, not a string. If you ever need the underlying browser event, it's available as e.nativeEvent.
What are fragments, and why use them?
Show sample answerHide answerSay yours out loud first, then check.
A fragment lets a component return several elements without adding an extra wrapper node to the DOM. That matters for layout (an extra div can break a flex or grid structure) and for valid HTML, like table rows or definition lists.
The short syntax is an empty tag. When you render fragments in a list, use the full Fragment form so you can give each one a key:
import { Fragment } from 'react';
function Glossary({ items }) {
return (
<dl>
{items.map((item) => (
<Fragment key={item.id}>
<dt>{item.term}</dt>
<dd>{item.meaning}</dd>
</Fragment>
))}
</dl>
);
}
How do you turn an array into a list on screen, and how do you render something conditionally?
Show sample answerHide answerSay yours out loud first, then check.
Map over the array and return an element per item, each with a stable key (Q10 explains why). For conditional rendering, the common patterns are an early return, a ternary, and &&:
function TodoList({ todos, isLoading }) {
if (isLoading) return <p>Loading...</p>;
return (
<>
{todos.length > 0 ? (
<ul>
{todos.map((todo) => (
<li key={todo.id}>{todo.text}</li>
))}
</ul>
) : (
<p>Nothing to do yet.</p>
)}
</>
);
}
One gotcha worth naming: todos.length && ... renders a literal 0 when the array is empty, because 0 is a value React will display. Use todos.length > 0 && ... or a ternary instead.
React vs React Native: what's different?
Show sample answerHide answerSay yours out loud first, then check.
They share the same component model, the same hooks and the same way of thinking about state. The difference is where the output goes.
| React (with React DOM) | React Native | |
|---|---|---|
| Renders to | The browser DOM | Native mobile UI components |
| Building blocks | HTML elements like div and span | Components like View and Text |
| Styling | CSS | JavaScript style objects |
So your hooks and state skills carry over. Your knowledge of HTML and CSS mostly does not.
What are React's main strengths and limitations?
Show sample answerHide answerSay yours out loud first, then check.
Strengths you can explain from the model itself:
- Components let you build UI from small, reusable pieces.
- The declarative style means you describe what the UI should look like for a given state, and React works out the updates.
Limitations worth naming honestly:
- React is a UI library, not a full framework. Routing, data fetching and forms come from other packages or from a framework built on React.
- That freedom means many choices, and new teams can end up with inconsistent patterns.
If you're asked "why React," tie your answer to a project you built rather than to a list like this one. The behavioral section covers how.
More hooks and state questions#
These are comparisons that come up as follow-ups once the core hooks and state questions are done.
useRef or useState: how do you pick?
Show sample answerHide answerSay yours out loud first, then check.
Both persist a value across renders. The difference is what happens when the value changes.
useState | useRef | |
|---|---|---|
| Changing it triggers a re-render | Yes | No |
| How you update it | Call the setter | Assign to .current |
| Typical uses | Anything shown on screen | DOM nodes, timer IDs, the previous value of a prop |
Rule of thumb: if the UI needs to reflect the value, it's state. If it's bookkeeping the UI doesn't display, a ref is fine. Avoid reading or writing ref.current during render, because React doesn't track it, and your output can drift out of sync.
When does useReducer beat useState?
Show sample answerHide answerSay yours out loud first, then check.
Reach for useReducer when several pieces of state change together, or when the next state depends on what kind of action happened. A form with loading, error and data fields is a typical case. So is a list with add, edit and delete actions.
Benefits you can name:
- All update logic lives in one pure function, which is easy to test on its own.
- The
dispatchfunction keeps the same identity across renders, so passing it down doesn't break memoized children. - Components describe what happened ("item removed") instead of how to compute the new state.
For a single boolean or a single string, useState is simpler, and simpler wins.
useEffect vs useLayoutEffect: what's the difference?
Show sample answerHide answerSay yours out loud first, then check.
useLayoutEffect runs after React updates the DOM but before the browser paints, and it blocks painting until it finishes. useEffect doesn't block: it usually runs after the browser has painted, though React doesn't promise that in every case, so don't write code that depends on the exact timing.
Use useLayoutEffect when you need to measure layout, like an element's size or position, and adjust before the user sees anything. Otherwise you can get a visible flicker. Because it holds up painting, use it only for that kind of measurement. Everything else belongs in useEffect.
How does a child send data back to its parent?
Show sample answerHide answerSay yours out loud first, then check.
Data flows down through props, so the parent passes a callback down. The child calls it with whatever it needs to report:
function Parent() {
const [term, setTerm] = useState('');
return <SearchBox onSearch={setTerm} />;
}
function SearchBox({ onSearch }) {
function handleInput(event) {
onSearch(event.target.value);
}
return <input onChange={handleInput} />;
}
This is lifting state up (Q14) seen from the child's side: the parent owns the state, and the child reports changes through a function prop.
What happens if you mutate state directly?
Show sample answerHide answerSay yours out loud first, then check.
React decides whether to re-render by checking if the new state is a different value from the old one. If you push into an existing array and pass the same array back, the reference hasn't changed. React may skip the update entirely, and memoized children won't notice either.
// Bug: same array reference
items.push(newItem);
setItems(items);
// Fix: a new array
setItems([...items, newItem]);
The same applies to objects: copy them with spread, then change the copy. Mutation bugs are especially confusing because sometimes the screen updates anyway, triggered by some unrelated re-render.
Data fetching and async scenario questions#
These are "how would you" questions. Lead with your approach, mention the edge case, and offer to sketch code.
How do you fetch data with loading and error states, and stop an out-of-order response from winning?
Show sample answerHide answerSay yours out loud first, then check.
Track the data plus where the request stands: still in flight, failed, or done. Render a different UI for each case, and make sure the failure path shows something useful, not a blank screen.
The race condition shows up when a prop like id changes quickly. The first request might finish after the second, and its stale data overwrites the fresh data. The fix is to cancel or ignore the old request in the effect's cleanup. AbortController cancels the network request itself:
function ProfileCard({ id }) {
const [profile, setProfile] = useState(null);
const [status, setStatus] = useState('loading');
useEffect(() => {
const controller = new AbortController();
setStatus('loading');
fetch(`/api/profiles/${id}`, { signal: controller.signal })
.then((res) => {
if (!res.ok) throw new Error(`Request failed: ${res.status}`);
return res.json();
})
.then((data) => {
setProfile(data);
setStatus('done');
})
.catch((err) => {
if (err.name === 'AbortError') return;
setStatus('failed');
});
return () => controller.abort();
}, [id]);
if (status === 'loading') return <p>Fetching profile...</p>;
if (status === 'failed') return <p>Could not load this profile.</p>;
return <h2>{profile.name}</h2>;
}
If you can't cancel the work, use an ignore flag instead: set it to true in cleanup, and skip setProfile when it's true. Either way, this is the same cleanup discipline Q19 describes.
In a real app, a data-fetching or cache library usually handles all of this (see the table in Q13). Interviewers still want to see that you can write it by hand.
How would you debounce a search box?
Show sample answerHide answerSay yours out loud first, then check.
Debouncing waits until the user stops typing before running the search. A small custom hook holds the settled value, and an effect fetches whenever that value changes:
function useDebouncedValue(value, delay) {
const [settled, setSettled] = useState(value);
useEffect(() => {
const timer = setTimeout(() => setSettled(value), delay);
return () => clearTimeout(timer);
}, [value, delay]);
return settled;
}
function SearchResults({ delay }) {
const [text, setText] = useState('');
const [results, setResults] = useState([]);
const settledText = useDebouncedValue(text, delay);
useEffect(() => {
if (!settledText) {
setResults([]);
return;
}
const controller = new AbortController();
const url = `/api/search?q=${encodeURIComponent(settledText)}`;
fetch(url, { signal: controller.signal })
.then((res) => res.json())
.then((data) => setResults(data.items))
.catch((err) => {
if (err.name !== 'AbortError') setResults([]);
});
return () => controller.abort();
}, [settledText]);
function handleTyping(event) {
setText(event.target.value);
}
return (
<>
<input value={text} onChange={handleTyping} />
<ul>
{results.map((item) => (
<li key={item.id}>{item.title}</li>
))}
</ul>
</>
);
}
Every keystroke clears the previous timer, so only the last value survives the delay. The delay comes in as a prop, so you can tune it without touching the hook. And because the fetch effect aborts on cleanup, a slow early search can't overwrite a later one.
How do optimistic updates work, and what happens when the request fails?
Show sample answerHide answerSay yours out loud first, then check.
An optimistic update changes the UI right away, before the server confirms, so the app feels instant. Think of liking a post or checking off a todo.
The steps:
- Save the current value.
- Update the UI to the expected new value.
- Send the request.
- If it fails, restore the saved value and tell the user what happened.
The failure path is what interviewers probe. An optimistic update without a rollback just shows the user something that isn't true.
How do you protect a route that requires login?
Show sample answerHide answerSay yours out loud first, then check.
Wrap protected routes in a component that checks the auth state. While the check is loading, show a loading state. If the user isn't signed in, redirect to the login page, ideally remembering where they were headed.
The part that earns credit: client-side route protection is a user experience feature, not security. Anyone can read your JavaScript bundle. The server must check authorization on every request for protected data, whatever the client shows.
Why render a modal through a portal?
Show sample answerHide answerSay yours out loud first, then check.
A modal rendered inside a deeply nested component can get clipped by a parent's overflow: hidden, or buried under another element's stacking order. A portal renders the modal into a different DOM node, often document.body, while it stays in the same React tree:
import { createPortal } from 'react-dom';
function Modal({ open, onClose, children }) {
if (!open) return null;
return createPortal(
<div className="backdrop" onClick={onClose}>
<div role="dialog" aria-modal="true" onClick={(e) => e.stopPropagation()}>
{children}
</div>
</div>,
document.body
);
}
Two follow-ups to be ready for. First, events from inside a portal still bubble through the React tree, not the DOM tree. Second, accessibility: move focus into the modal when it opens, close it on Escape, and return focus to the trigger when it closes.
Testing, debugging and TypeScript questions#
Walk me through how you debug a React bug.
Show sample answerHide answerSay yours out loud first, then check.
A clear, repeatable process beats a list of tools. One that works:
- Reproduce it reliably. Find the smallest set of steps that triggers it.
- Read the error. React's warnings and the stack trace often name the component.
- Inspect props and state. React DevTools shows each component's props, state and hooks as they change.
- Check the network tab if data is involved. Is the request firing, and what came back?
- Profile if the bug is slowness, as Q15 describes.
- Form a guess, test it, and repeat. Breakpoints in the browser's dev tools beat scattering
console.logcalls everywhere.
Then tell a short story about a real bug you fixed this way. That's what makes the answer stick.
What's your approach to testing a component built on useState and useEffect?
Show sample answerHide answerSay yours out loud first, then check.
Test what the user sees, not the hooks themselves. React Testing Library is built around this idea: render the component, interact with it the way a user would, and assert on what appears on screen.
Here's a test for the ProfileCard from Q36, with the network mocked so the test doesn't depend on a real server:
import '@testing-library/jest-dom';
import { render, screen } from '@testing-library/react';
import ProfileCard from './ProfileCard';
beforeEach(() => {
global.fetch = jest.fn(() =>
Promise.resolve({
ok: true,
json: () => Promise.resolve({ name: 'Ada' }),
})
);
});
test('shows the profile name once it loads', async () => {
render(<ProfileCard id="ada" />);
expect(screen.getByText(/fetching profile/i)).toBeInTheDocument();
expect(await screen.findByText('Ada')).toBeInTheDocument();
expect(global.fetch).toHaveBeenCalledTimes(1);
});
A few habits worth mentioning:
- Mock the network layer, not React.
- Use the async
findByqueries for anything that appears after an effect runs. - Don't assert on internal state values. If a refactor keeps the UI the same, the tests should still pass.
For reusable UI components, like those in a design system, test each one on its own: render it with different props and check the output and the interactions. The goal is to catch a broken button before it breaks every page that uses it.
How do you type a component's props with TypeScript?
Show sample answerHide answerSay yours out loud first, then check.
Describe the props with a type or an interface, and annotate the component's parameter:
type ButtonProps = {
label: string;
onClick: () => void;
disabled?: boolean;
};
function Button({ label, onClick, disabled = false }: ButtonProps) {
return <button onClick={onClick} disabled={disabled}>{label}</button>;
}
Other spots that come up:
- State that starts empty:
useState<User | null>(null), so TypeScript knows what it will hold later. - Event handlers: types like
React.ChangeEvent<HTMLInputElement>for an input's change event. - Optional props: mark them with
?and give them a default.
How would you organize folders in a larger React project?
Show sample answerHide answerSay yours out loud first, then check.
There's no single right answer, so the interviewer is checking whether you can explain a trade-off. One common approach groups code by feature: everything for checkout (components, hooks, tests, styles) lives in a checkout folder, and components used across several features get a folder of their own.
Points worth making:
- Keep related files close together so a change touches one folder.
- Avoid deep nesting that makes imports hard to follow.
- Move something to "shared" only when a second feature needs it.
React live coding: what to practice#
Live coding checks whether you can build and explain at the same time. Practice small, complete builds until you can do each one without looking anything up:
- A todo list with add, delete and toggle, using stable keys
- A search box that debounces input and fetches results, with loading and error states
- A modal rendered through a portal that closes on Escape and backdrop click
- A form with validation and a disabled submit button until it's valid
- A filterable list where the filtered result is computed during render, not stored in state
How to talk while you type:
- Restate the task and ask about edge cases before writing code. Empty list? Slow network?
- Say your plan in a sentence or two: what state you need and where it lives.
- Narrate decisions as you make them: "I'm keying by
idbecause items can be deleted." - When something breaks, say what you think is wrong before you change anything.
- At the end, name one thing you'd improve with more time.
Behavioral questions for React developers#
Expect at least a few questions about how you've used React on real projects. Answer each one with a short story: the situation, what you did, and what changed. Pull every detail from your own projects, and don't round up anything you didn't do.
- Why did you choose React? Name a project and say what React made easier there, like reusing a component across pages. Skip the generic praise.
- Pick an effect or lifecycle method from one of your projects and explain it. Choose one with a dependency array you had to think about, and say what would have broken without its cleanup.
- Describe a hard bug you fixed. Walk through the process from Q41: how you reproduced it, what you suspected, what the real cause was.
- Walk me through a slow screen you sped up. Explain how you measured it before you changed anything, and how you confirmed the fix worked.
- When did you disagree with someone about where state should live? Show you can weigh Context against local state or a store, and land on a decision.
If you don't have a story for one of these yet, the small app in step 1 of the prep plan below can give you one.
How to prepare for React interview questions#
Here's a focused two-to-three-week plan, calibrated for a CS new grad who has built React side projects but never shipped a production frontend. The steps line up with the short version in the TL;DR at the top.
-
Build one small app that touches every core concept. It should have a list with stable keyed items, a controlled form with validation, a
useEffectthat fetches with cleanup, oneuseMemofor a genuinely expensive computation, and a Context provider for theme or user. The point isn't the app. It's that every answer becomes a thing you shipped instead of a thing you read. -
Drill the
useEffectdependency array and stale closures cold. Write an effect that omits a dependency it reads and watch the stale value. Then fix it three ways: add the dependency, use the functional updater form of the setter, and move the logic out of the effect. If you can teach this to a rubber duck without notes, you've covered most hooks follow-ups. -
Master the rendering model. Read one clear explanation of reconciliation, then prove it. Render a list with index keys, reorder it, and watch a controlled input keep the wrong value. Swap to stable ID keys and watch the bug vanish. Write a paragraph on why the virtual DOM diff beats touching the real DOM directly.
-
Rehearse performance and SSR/hydration trade-offs out loud. Cover when you reach for
React.memo,useMemoanduseCallback, and why measuring beats memoizing by reflex. Cover what a hydration mismatch is, what causes it and how you fix it. Lead with the decision, then the reason. -
Drill controlled vs uncontrolled and Context vs external state. Build both form versions. Take one fast-changing value and one slow-changing value and decide where each belongs. Be ready to explain why keystrokes don't go in Context.
-
Run one timed mock interview and narrate your reasoning. Spend forty-five minutes mixing a hooks bank, one rendering-model question, one controlled-input question, and one performance or hydration question. Narrate the whole time, because frontend interviews grade how you think. If you want to rehearse these out loud against live follow-ups and hear an answer outline you can then say in your own words, run a mock React round in the live interview assistant before the real one.
The non-negotiable step is the first one. Interviewers can tell within a couple of follow-ups whether you've shipped React or only read about it. The fastest way to sound like you've shipped it is to have built the small app you're describing yourself.
Common React interview mistakes#
These are the mistakes that sink the most new-grad React interviews in the 2025-2026 hiring cycle, in roughly the order of frequency:
- Reciting what a hook does without explaining when it re-runs. "useEffect runs side effects" is a definition, not an answer. The fix: always pair the definition with the dependency-array behavior and the stale-closure failure mode, because that's what the follow-up will probe.
- Using the array index as a key. It works in a demo and breaks the moment the list reorders or items get deleted. The fix: use a stable unique ID from your data, and be ready to explain the input-keeps-wrong-value bug that index keys cause.
- Memoizing everything by reflex. Wrapping every value in
useMemoand every function inuseCallbackadds overhead and signals that you don't understand referential equality. The fix: say you profile first, then memoize the proven hot path, and thatReact.memois a no-op without stable props. - Putting fast-changing state in Context. Treating Context as "global state" for everything re-renders the whole subtree on every keystroke. The fix: use Context for rarely changing, widely read values, and local state or a store with selectors for anything that updates often.
- Treating
useEffectas a catch-all. That means using effects to derive state from props or to respond to clicks. The fix: compute derived values during render, handle events in handlers, and keep effects for synchronizing with systems outside React.
One thing I'd add from watching new grads run React rounds: don't try to memorize all five fixes the night before. Pick the two that match your weak spots (almost always the dependency array and the Context-overuse trap) and close those. Walk into your React round able to say the answer to those two cold, and the rest follows from the small app you built.
If you want on-demand React scenarios with a quiet answer outline to react to, so the rep cost is a coffee instead of a friend's afternoon, a live interview assistant you can start free (60 minutes a month with no card; Pro is $29 a month) gives you exactly that.
Frequently asked questions#
How much JavaScript do I need before React questions make sense?
Enough to be comfortable with closures, array methods like map and filter, promises with async/await, and the difference between comparing objects by reference and by value. Stale closures and referential equality are JavaScript concepts at heart, just wearing React clothes. If those two feel fuzzy, fix the JavaScript first.
What's the difference between React and a framework like Next.js?
React is the UI library: components, state and rendering. A framework built on React adds the pieces React leaves out, such as routing, server rendering and data loading conventions. If a role mentions a framework, review the SSR and hydration section closely.
How should I practice explaining answers out loud?
Record yourself answering one question per topic, then play it back. Listen for answers that state a definition but never get to the trade-off. A good spoken answer leads with the decision, gives the reason, and names one thing that breaks if you choose wrong.
Related guides#
- Angular interview questions: the other dominant frontend framework, useful if you're interviewing across both ecosystems or want to contrast the component models.
- Python interview questions: the language most React backends and full-stack roles pair with, and a common second round in full-stack loops.
- System design basics for new grads: the framework for the frontend-system-design and architecture rounds that sit alongside React component questions.
- Technical phone screen tactics: the round that tests React knowledge under live observation, where narrating your reasoning matters as much as the answer.
About the author: Sam K. is the founder of InterviewChamp.AI, building AI interview prep for the new-grad CS market and writing about the modern interview gauntlet from the inside.
Originally published on InterviewChamp.AI
Related guides
AI Interview Tools 2026: A Buyer's Guide for CS New Grads
The phrase "AI interview" means three different things in 2026 and most candidates land on the wrong page for their actual problem. It can mean a candidate using AI to help during an interview, an employer using AI to score candidates without a human in the room, or an AI bot that runs an entire mock interview for prep. This guide untangles all three, walks through the seven decision criteria that matter when picking a candidate-side AI tool, covers what interviewers can actually detect in 2026, and lays out a $1,847-budget allocation a real CS new grad can copy. Honest-prep voice. No "100% undetectable" claims. No competitor names.
Sam K. ·
Read more →AI Interview Assistant in 2026: What They Are, The 4 Categories, How Detection Works, and Who Actually Needs One
An AI interview assistant is software that helps a candidate prepare for or perform during a job interview using generative AI. The 2026 market has settled into four distinct categories with sharply different risk profiles. This guide covers what each category actually does, how interviewers detect them, the honest-prep frame that survives a career arc, and the 5-question vetting checklist before you pay for one.
Sam K. ·
Read more →Answer AI Alternatives in 2026: 7 Tools Compared (Plus Cancellation Guide)
Answer AI is a Chrome-extension interview helper that reads job interview questions on screen and surfaces AI answers in real time. People search for alternatives for three reasons: latency under live pressure, the browser-extension form factor doesn't reach the desktop Zoom and Teams apps, and the subscription auto-renews are easy to miss. This guide compares 7 honest alternatives across pricing, surface coverage, and AI safety, and includes a 4-step cancellation walkthrough for anyone trying to leave Answer AI cleanly before their next billing cycle hits.
Sam K. ·
Read more →Frequently asked questions
- What React interview questions should I expect in 2026?
- Expect four buckets. Hooks (35-45% of questions) test whether you understand useState, useEffect, useMemo, and useCallback at a level deeper than the docs, including when each re-runs. Rendering model questions (20-30%) cover the virtual DOM, reconciliation, and why keys matter. State and data-flow questions (15-25%) cover controlled vs uncontrolled inputs and Context vs an external store. Performance and SSR/hydration (10-20%) probe wasted renders, memoization trade-offs, and hydration mismatches. Most entry-level loops lean heavier on hooks and the rendering model. Senior loops lean heavier on performance and architecture.
- What React hooks questions come up most in interviews?
- The four core hooks dominate. useState (how state updates batch and why updates are asynchronous), useEffect (the dependency array, cleanup functions, and when the effect re-runs), useMemo (memoizing an expensive computed value), and useCallback (memoizing a function so a memoized child does not re-render). Interviewers almost always follow up with a dependency-array trap: 'what happens if you leave a value out of the array?' The honest answer is that you get a stale closure, where the effect reads an old value of the variable. Knowing that one failure mode answers half the hooks questions you will get.
- What is reconciliation and the virtual DOM in React?
- The virtual DOM is a lightweight in-memory description of your UI, a tree of plain objects describing what the DOM should look like. Reconciliation is the algorithm React runs to compare the new virtual DOM tree against the previous one (a process commonly called diffing) and compute the minimum set of real DOM mutations needed. React assumes two elements of different types produce different trees and that keys tell it which list children are stable across renders. The interview-relevant point is that reconciliation makes updates cheap, but only if you help React with stable keys and avoid changing element types unnecessarily.
- Why do keys matter in React lists, and why not use the array index?
- Keys tell React which list items are the same item across renders, so it can reuse and reorder DOM nodes instead of recreating them. A stable key (usually a unique ID from your data) lets React move a node when the list reorders. Using the array index as a key breaks this whenever the list can reorder, insert, or delete, because the index of an item changes while its identity does not. The classic bug is an input field inside a list keeping the wrong typed value after a reorder, because React matched it to the wrong item by index. Use a stable unique ID; use the index only for a static list that never changes order.
- What is the difference between controlled and uncontrolled components in React?
- A controlled component has its value driven by React state, so the input renders value from state and updates state in onChange. The component is the single source of truth. An uncontrolled component lets the DOM hold its own value, and you read it through a ref when you need it (for example on submit). Controlled inputs give you instant validation, conditional disabling, and formatting as the user types, at the cost of a re-render per keystroke. Uncontrolled inputs are lighter and pair well with native form behavior or large forms. In 2026 most production forms use a controlled approach through a form library that manages the state for you.
- When should I use Context instead of an external state library?
- Use Context for low-frequency, broadly-read values: theme, current user, locale, feature flags. Context is built for dependency injection, not high-frequency updates, because every consumer re-renders when the Context value changes. Reach for an external store when state updates often, when many components subscribe to different slices, or when you need selectors so a component only re-renders for the slice it reads. The trap interviewers set is asking you to put a fast-changing value (like form keystrokes or a cursor position) in Context. The right answer is that you would not, because it would re-render the whole subtree on every change.
- What causes unnecessary re-renders in React and how do you fix them?
- The most common cause is a parent re-rendering and passing a new object, array, or function reference to a child on every render, which defeats any memoization on that child. Fixes, in order: lift state down so fewer components re-render, wrap stable callbacks in useCallback and stable objects in useMemo, wrap pure children in React.memo so they skip re-render when props are referentially equal, and use a state selector so a component only subscribes to the slice it reads. The honest framing for an interview is that you measure first with the profiler, then memoize the proven hot path, rather than wrapping everything in useMemo by reflex.
- What is the useEffect dependency array and what goes wrong if it is incomplete?
- The dependency array tells React when to re-run an effect: the effect runs after render whenever any value in the array changes. Leaving the array out entirely runs the effect after every render. Passing an empty array runs it once after mount (plus cleanup on unmount). The danger is an incomplete array that omits a value the effect actually uses, which produces a stale closure where the effect reads an outdated value captured from an earlier render. The fix is to include every value the effect reads, or restructure so the effect does not depend on that value, often with the functional update form of a state setter.
- What is hydration in React SSR and what is a hydration mismatch?
- Hydration is the step where React takes server-rendered HTML and attaches event listeners and state to it on the client, turning static markup into an interactive app without re-creating the DOM. A hydration mismatch happens when the HTML React renders on the client differs from what the server sent, which forces React to discard and re-render that subtree and logs a warning. Common causes are rendering a timestamp or random value, reading window or localStorage during the initial render, or branching on whether code runs on the server or client. The fix is to make the first client render produce identical output to the server, then update after mount in an effect.
- How do I prepare for a React interview as a CS new grad?
- Two to three weeks of focused work. First, build one small app that exercises the core hooks, a controlled form, a keyed list, and a Context provider, so your answers come from things you have actually shipped. Second, drill the dependency-array and stale-closure failure modes until you can explain them cold, because that single topic shows up in most hooks rounds. Third, rehearse the performance and SSR/hydration trade-offs out loud, since those separate a recall answer from a hire answer. Run at least one timed mock so you practice narrating your reasoning, not just coding silently.