React interview questions for 2027: React 19, the Compiler, Server Components and Actions
What React interviews in 2027 ask beyond hooks: Actions, useActionState, use, the React Compiler, Server Components, Suspense and React 19.2 and 19.3.
Intermediate 12 min readBy UIRound, updated 23 November 2026
React interviews still open with hooks, state and re-renders, but the follow-ups have moved. Since React 19 became stable, interviewers ask how a form submits through an Action, what the React Compiler means for useMemo, where the server and client boundary sits, and how Suspense streams HTML. This guide lists what changed, with dates, the questions each change produces, and what a strong answer covers. It is a map of the newer material. For practice, go to the React interview questions hub, which holds the questions themselves.
What changed, and when
Every row below is a real release you can check on the React or Next.js blog. Interviewers rarely ask for dates, but knowing the order helps you explain why a codebase looks the way it does.
| When | Release | What it added | Why it comes up |
|---|---|---|---|
| December 2024 | React 19 stable | Actions, useActionState, useOptimistic, useFormStatus, use, Server Components and Server Functions, ref as a prop, document metadata |
The new default way to handle forms and async updates |
| February 2025 | Create React App sunset | The React team stopped recommending CRA for new apps | "How would you start a new React project?" now means a framework or Vite |
| October 2025 | React 19.2 | <Activity>, useEffectEvent, cacheSignal, Performance Tracks in Chrome DevTools, partial pre-rendering, batched Suspense reveals during streaming SSR |
Effects, hidden UI and streaming questions |
| October 2025 | React Compiler 1.0 | Stable build-time automatic memoization, compiler-powered lint rules in eslint-plugin-react-hooks |
Changes the answer to every useMemo and useCallback question |
| October 2025 | Next.js 16 | Stable reactCompiler option (off by default), Turbopack as the default bundler, Cache Components with "use cache", proxy.ts replacing middleware.ts |
Most Server Components questions are asked through Next.js |
| December 2025 | Security advisory for React Server Components | A critical remote code execution flaw (CVE-2025-55182) in how Server Function payloads were decoded, fixed in 19.0.1, 19.1.2 and 19.2.1 | Shows that Server Functions are network endpoints |
| September 2026 | React 19.3 | Stable <ViewTransition> and addTransitionType, Fragment refs, Trusted Types values passed to the DOM intact |
Animation and security follow-ups |
As of late 2026, React 19.3 is the latest minor release. Check the React blog before an interview in case a newer one has shipped.
Hooks basics are still the first filter
The newer topics sit on top of the old ones, not in place of them. Most React rounds still start with a short build or a "what does this render?" snippet, and a weak answer there ends the round before anyone mentions Server Components. Make sure you can explain these without notes:
- How useEffect works, with dependencies and cleanup, and why Strict Mode runs effects twice in development.
- The rules of hooks and the reason behind them: React matches hook state to call order.
- Why a component re-renders, and why lists need stable keys.
- Stale closures in timers and handlers. Predicting stale closure results and useInterval without stale closures are the standard pair.
- Fetching data in React, including race conditions when the input changes, as in loading a list and its details without races.
The React hooks questions and React questions for freshers cover this layer. If any item above feels shaky, fix it before the rest of this guide.
Actions, useActionState, useOptimistic and use
React 19 calls an async function used inside a transition an Action. React tracks it for you: it sets a pending state while the function runs, surfaces thrown errors to the nearest error boundary, and resets a <form> after a successful form action. The hooks built on it replace the isSubmitting and error state that every form used to carry.
"use client";
import { useActionState } from "react";
import { subscribe } from "./actions"; // async (previousState, formData) => newState
export function Newsletter() {
const [state, formAction, isPending] = useActionState(subscribe, { error: null });
return (
<form action={formAction}>
<input name="email" type="email" required />
<button disabled={isPending}>{isPending ? "Subscribing..." : "Subscribe"}</button>
{state.error && <p role="alert">{state.error}</p>}
</form>
);
}What interviewers ask about it:
- "What does
useActionStatereturn, and what does the action receive?" The current state, a function to pass toaction, and anisPendingflag. The action receives the previous state and the submittedFormData, so it works as a reducer that runs on submit. - "Why does my submit button never show pending?" Because
useFormStatusreads the status of the form it is rendered inside. Called in the same component that renders the<form>, it sees nothing. Fix a submit button that never shows pending is exactly this bug. - "How does
useOptimisticroll back?" It shows a temporary value while an Action is in flight. When the Action finishes, React drops the optimistic value and shows the real state, so a failure reverts without code of your own. Build useOptimistic from scratch tests whether you understand the queue behind it. - "How is
usedifferent from a hook?" It can be called inside conditions and loops. It reads context or a promise, and a pending promise suspends the component. The promise must be cached or passed in from a parent, because a promise created during render is new on every render. Stop use() from suspending forever shows the failure.
The React 19 Actions guide covers each API in depth. Practise with a sign-up form built on useActionState and the same contact form built three ways. Smaller React 19 changes come up too: ref is now a plain prop, so forwardRef is no longer needed.
The React Compiler and the useMemo question
React Compiler 1.0 shipped in October 2025. It is a build-time tool, a Babel plugin, that analyses each component and hook and caches values, functions and JSX so they only change when their inputs change. It works with React 17 and later (versions before 19 need an extra runtime package), and it skips code that breaks the Rules of React rather than compiling it wrongly. Next.js 16 made its reactCompiler option stable but left it off by default, citing build time, so you will meet codebases with and without it.
That changes how you answer the oldest React performance question. "What is the difference between useMemo and useCallback?" still needs the classic answer: one caches a computed value, the other caches a function, and both only help when something downstream compares by reference. See useMemo vs useCallback and when to use React.memo. Then add the current part:
- With the compiler on, new code rarely needs manual memoization. The React team's guidance is to rely on the compiler and keep
useMemoanduseCallbackas escape hatches for precise control, such as a value used as an effect dependency. - Existing manual memoization can stay. Removing it changes what the compiler produces, so do it only with tests.
- The compiler does not fix slow components. It removes wasted re-renders; an expensive render that has to happen is still expensive. Moving state down and passing
childrenstill matter, as in stop a slow component from re-rendering. - Code that mutates props, reads mutable values during render or calls hooks conditionally is skipped or, worse, behaves differently once memoized. The compiler's lint rules now ship in
eslint-plugin-react-hooksand flag these patterns even without the compiler installed.
A senior-level follow-up is a rollout question: how would you turn it on in a large app? Adopt the React Compiler without hiding bugs practises the answer: lint first, enable it per directory, pin the version, and watch effects whose dependencies change identity. Pair it with predicting useMemo and useCallback cache hits and the React rendering guide, which has a section on the compiler.
Server Components and Server Functions
Server Components were the biggest conceptual change in React 19, and they are where candidates most often blur ideas. Keep three distinctions clear.
- Server Components are not SSR. SSR turns components into HTML for the first paint, and the same components then hydrate in the browser. A Server Component runs only on the server; its code never ships to the client. Most apps use both. The Server Components guide separates them with real payloads.
"use client"marks a module boundary, not a component. Everything imported from that file becomes client code. Props that cross from server to client must be serialisable, so a function prop fails unless it is a Server Function. Check React Server Component boundaries drills the common mistakes.- Server Functions are public endpoints. A function marked
"use server"is called by the client over HTTP. Treat its arguments as untrusted input: validate them and check authorisation inside the function. The December 2025 advisory made the stakes concrete: a flaw in how React decoded Server Function payloads allowed remote code execution, and apps that supported Server Components were affected even if they defined no Server Functions themselves. You will not be asked for CVE numbers, but "how do you secure a Server Action?" is now a fair question.
The typical design question is deciding the server and client boundary for a product page: keep the description, price and reviews on the server, push interactivity such as the add-to-cart button and image zoom to small client leaves, and say what each choice does to the bundle. For Next.js specifics, read what server actions are in Next.js and data fetching in the App Router, then practise on the Next.js interview questions. Stale data through framework caches is its own topic: fix a Next.js page that shows stale data.
Suspense, streaming and hydration
Suspense questions now span the client and the server. On the client, a boundary shows a fallback while lazy code or a use promise is pending. On the server, the same boundaries decide what streams first: React sends the shell, then streams each boundary's HTML as its data resolves, and hydrates boundaries selectively, prioritising the one the user interacts with. React 19.2 added batching of Suspense reveals during streaming SSR, so content streamed close together appears together, with a cut-off so it does not delay Largest Contentful Paint. It also added partial pre-rendering APIs that render the static shell ahead of time and resume the dynamic parts per request.
What interviewers probe:
- Where to put boundaries so the page does not "popcorn" in random order. Practise revealing Suspense skeletons in order.
- What happens when a promise rejects. Suspense does not catch errors; an error boundary does.
- Why server and client output must match, and how to find a mismatch. Read what hydration is and practise detecting hydration mismatches.
The Suspense and streaming SSR guide shows the real streamed HTML, and a Suspense data-loading example with streaming is the hands-on version.
Transitions and concurrent rendering
startTransition, useTransition and useDeferredValue are asked at mid and senior levels, usually as "the input lags while a big list filters; fix it". The answer starts with what concurrent rendering is: React can pause a render to handle input and then continue or discard it. It does not use threads, and it does not make a slow render fast. React 19 extended transitions to async functions, which is what Actions are built on, and React 19.3 made transitions render independently, so a slow one no longer holds up unrelated ones.
Read, in order: concurrent rendering, useTransition and startTransition, useDeferredValue and useDeferredValue vs useTransition. Automatic batching explains the render counts that output questions rely on. Then practise keeping typing responsive with useDeferredValue and ordering React's update work by phase and lane.
React 19.2 and 19.3 additions
These are newer, so interviewers ask about them less often and mostly as "have you used it, and what problem does it solve?" Two are worth real depth.
useEffectEvent splits the non-reactive part of an effect into a function that always reads the latest props and state without being a dependency. It answers a question that used to have only awkward answers: "this effect reconnects whenever the theme changes; how do you stop that without lying to the linter?"
function ChatRoom({ roomId, theme }) {
const onConnected = useEffectEvent(() => {
showNotification("Connected", theme); // always the latest theme
});
useEffect(() => {
const connection = createConnection(roomId);
connection.on("connected", () => onConnected());
connection.connect();
return () => connection.disconnect();
}, [roomId]); // a theme change no longer reconnects
}The React docs are explicit that it is for genuine events fired from effects, not a way to silence dependency warnings. Say so in the interview.
<Activity> renders part of the tree as visible or hidden. A hidden subtree keeps its state, cleans up its effects and defers its updates, which suits tabs that should keep their form contents or a next page rendered in advance. Build keep-alive tabs like Activity asks you to build the idea yourself.
The rest are good to recognise. cacheSignal lets Server Components abort work whose result will not be used. Performance Tracks add a Scheduler track and a Components track to Chrome DevTools profiles, a useful answer to "how would you debug a slow interaction?" (see also how to debug a React app). React 19.3 made <ViewTransition> stable for animating updates inside transitions, and added Fragment refs for working with a group of sibling nodes without a wrapper element. Practise the animation side with useViewTransition and list-to-detail with the View Transitions API.
What separates a strong answer
Across all of these topics, interviewers are checking the same thing: whether you know why an API exists, not only its name.
- Name the problem first. "
useActionStateexists because every form had hand-written pending and error state" beats reciting the signature. - Give the limit. The compiler skips impure code.
useneeds a cached promise. Suspense does not catch errors. Server Functions need their own auth checks. - Say what you would measure. "I would profile with the React DevTools Profiler or the Performance Tracks before adding memoization" is a senior signal.
- Know the older way too. Many codebases still run React 18 or class components, and "how would you migrate this?" is common for experienced roles. The experienced React questions and scenario-based React questions lean this way.
A preparation order
If you have a few weeks, work through the layers in this order, because each one depends on the one before:
- Hooks, effects, keys and re-renders, with timed builds from the React machine coding questions.
- Rendering and memoization, then the compiler.
- Actions and the React 19 form hooks.
- Suspense, streaming SSR and hydration.
- Server Components and Server Functions, ideally in a small Next.js app you build yourself.
- Transitions, then the 19.2 and 19.3 additions.
The one-month study plan fits this order around a job, and the frontend interview roadmap shows where React sits among the other rounds. When you can explain each layer out loud, test yourself under time pressure with a mock interview.
Where to practise next
- React interview questions: the main practice hub for every topic above.
- React hooks questions and React machine coding questions for the build rounds.
- Next.js interview questions for Server Components, caching and routing.
- Guides: React 19 Actions, Server Components vs SSR, Suspense and streaming SSR, how React rendering works.
- Frontend system design interviews in 2027 for where rendering choices show up in design rounds, and AI in frontend interviews in 2027 for AI-assisted coding rounds.
- Company guides to see which rounds a specific company runs.
Sources
Practise it
Each question opens in an editor with tests, so you can check your understanding by writing the code.
- Build a sign-up form with
useActionState: field errors, kept values, pending and successMedium35 min - Build
useOptimisticfrom scratch: queued optimistic updates, rebase on server results and rollbackHard60 min - Stop
use()from suspending forever: a promise cache withreadandrefreshHard45 min - Adopt the React Compiler without hiding bugs: classify components and order the rolloutHard30 min
- Predict
useMemoanduseCallbackcache hits as props and dependencies changeMedium20 min - Check React Server Component boundaries: missing
'use client', server-only imports in client code and non-serialisable propsHard50 min - Decide the server/client component boundary for a Next.js product pageHard45 min
- Build a Suspense-based data-loading example with streaming SSR boundariesHard75 min
- Build keep-alive tabs like
<Activity>: keep hidden state, pause effects and skip hidden re-rendersHard45 min - Predict stale closure results in React: timeouts, intervals and event handlersMedium25 min