What should you review for a React interview?
Which React basics should you check first?
React basics and components appeared in 57 of 154 interviews, making this the most common topic in these interviews. The most asked question was what React is and why you would use it instead of changing the DOM directly.
Can you explain that choice? Then check these questions:
- How do props and state differ?
- What is the virtual DOM, and how does it differ from the real DOM?
- How do you handle events and render lists in a component?
Can you explain when useEffect runs?
Hooks and effects appeared in 47 of 154 interviews. Reviews of answers to the useEffect question found a clear gap: 4 of 6 reviewed answers did not clearly distinguish the dependency-array cases.
Check that your answer separates them:
- No dependency array: the effect runs after every render.
- An empty array: the effect runs on mount.
- Listed dependencies: the effect runs on mount and when dependencies change.
Can you also explain effect cleanup and request cancellation? The Hooks topic includes refs, closures, and custom hooks, so check those as well as useEffect.
Can you explain your state and rendering choices?
State management appeared in 43 of 154 interviews, and rendering performance appeared in 42 of 154 interviews. Check both where data belongs and what causes components to rerender.
- When would you keep state local or lift it to a shared parent?
- How would you choose between Context, Redux, Zustand, and a server-state tool such as React Query or SWR?
- What causes a component to rerender, and how would you prevent unnecessary rerenders?
- How would you use profiling to check performance or improve a large list?
What should you check beyond components and Hooks?
Use these questions to check how you would build and debug a full app:
- How do controlled and uncontrolled inputs differ, and how would you validate a form?
- How would you connect the UI to backend data and handle authentication and authorization?
- How do server-side and client-side rendering differ in Next.js?
- How would you debug incorrect UI data, and when would you use an error boundary?
- How would you organize components and shared dependencies?
What code should you be ready to write?
Coding tasks appeared in 7 of 154 interviews. Try the recorded tasks as checks: can you build a button-driven counter or a toggle switch?
Can you also write a custom hook that returns a debounced search value? Can you fetch data from multiple APIs at the same time and show it in the UI?
Who gets asked React
The 20 most asked React questions
Counted by interview, not by mention: a question asked twice in one conversation counts once.
What is React, and why use it instead of manipulating the DOM directly?
Asked in 15 of 154 interviews · last asked Sep 30 · Concept · Junior
Show answer
React is a JavaScript library for building user interfaces from reusable components. You describe what the UI should look like for the current data, and React updates the DOM when that data changes. This reduces manual DOM code and makes complex interfaces easier to maintain.
- Components split the UI into smaller, reusable pieces.
- State and props drive what components display.
- React manages DOM updates, reducing manual work to keep the UI and data in sync.
- React is not always faster; direct DOM code can be simpler for small tasks.
What the interviewer checks: The interviewer checks whether you understand React’s component model and how it differs from manual DOM updates.
Other ways it was asked
- “What is React?”
- “What is React, and why is it used?”
- “What is React, and what is it used for?”
How does useEffect work, when does it run, and how do you choose its dependencies?
Asked in 14 of 154 interviews · last asked Oct 6 · Concept · Junior
Show answer
useEffect synchronizes a component with external systems after React commits an update. Without a dependency array, it runs after every component commit; [] runs on mount; [a, b] runs on mount and when either value changes. Include every reactive value the effect reads. Cleanup runs before the effect reruns and when the component unmounts.
- Reactive dependencies include props, state, and variables or functions declared inside the component.
- React compares dependencies using Object.is; new objects and functions count as changed values.
- In development, Strict Mode can run an extra setup-and-cleanup cycle to test cleanup.
- Effects run only on the client, usually after paint; interaction-triggered effects may run before paint.
What the interviewer checks: The interviewer checks whether you understand effect timing, cleanup, and choosing dependencies without hiding missing values.
Common mistake (in 4 of 6 reviewed answers): Many answers forget that no dependency array, an empty array, and listed dependencies produce different run schedules.
Other ways it was asked
- “What is the useEffect hook in React, and when would you use it?”
- “What is useEffect in React?”
- “What is React's useEffect hook used for?”
What are props and state in React, and how do they differ?
Asked in 13 of 154 interviews · last asked Oct 15 · Concept · Junior
Show answer
Props are inputs a component receives from its parent. State is data a component manages and remembers between renders. A component must not change its props, and it updates state through a setter such as the one from useState. Changes to either can cause React to render the component again.
- Props pass data and functions from parent to child.
- State holds changing data, such as user input or whether a menu is open.
- Treat props and state as read-only; use state setters instead of changing state directly.
- A child can call a callback prop to ask its parent to update data.
What the interviewer checks: The interviewer checks whether you understand data ownership, parent-to-child data flow, and how components update.
Other ways it was asked
- “What are props in React?”
- “What is the difference between state and props?”
- “What is state in React, and how is it different from props?”
What are React Hooks, and how do common hooks work?
Asked in 11 of 154 interviews · last asked Oct 8 · Concept · Junior
Show answer
React Hooks are functions that let function components use React features, such as state and context. useState stores state; its setter requests a re-render. useEffect synchronizes with external systems after React commits an update, while useContext reads the nearest matching provider’s value.
- Hooks such as useState must run at the top level of function components or custom Hooks.
- Effect dependencies control reruns; cleanup runs before setup repeats and when the component unmounts.
- useRef keeps a value across renders; changing it does not trigger a re-render.
- useMemo caches a calculation result; useCallback caches a function reference. Both are performance tools.
What the interviewer checks: The interviewer checks whether you understand common Hooks, their roles, and the rules for calling them.
Other ways it was asked
- “What is a hook in React?”
- “How do hooks work in React?”
- “What are the hooks available in React?”
What causes React components to rerender, and how do you prevent unnecessary rerenders?
Asked in 10 of 154 interviews · last asked Oct 3 · Concept · Mid-level
Show answer
Components rerender when their state changes, their parent renders, or context they read changes. Keep state close to where it is used, and avoid redundant state updates. Use React.memo to skip parent-driven renders when props are unchanged. Use useMemo or useCallback when stable object or function references help memoization.
- New object, array, or function props can defeat React.memo because it compares each prop using Object.is.
- React.memo does not block updates from a component’s own state or context.
- A rerender does not always cause a DOM change.
- Use React DevTools Profiler to find costly renders before adding memoization.
What the interviewer checks: The interviewer checks whether you understand render triggers and can reduce wasted work without memoizing everything.
Other ways it was asked
- “What can cause excessive renders in a React application?”
- “How can you prevent unnecessary re-renders in React?”
- “What can cause unnecessary re-renders in a React application?”
What is React's virtual DOM, and how does it differ from the real DOM?
Asked in 10 of 154 interviews · last asked Oct 21 · Concept · Junior
Show answer
React's virtual DOM is an in-memory description of the UI. The real DOM is the browser's tree of page elements. When React renders, it compares the new description with the previous one, then applies needed changes to the real DOM. This helps manage updates, but does not guarantee better performance.
- Comparing the old and new UI descriptions is part of reconciliation.
- Rendering a component does not always mean changing the real DOM.
- The browser uses the real DOM to display the page.
- Virtual DOM comparisons have a cost; they are not always faster than direct DOM updates.
What the interviewer checks: The interviewer checks whether you understand how React calculates UI changes and how that differs from browser rendering.
Other ways it was asked
- “What is the virtual DOM in React?”
- “What is the Virtual DOM?”
- “Why does React use a virtual DOM?”
What is the difference between controlled and uncontrolled components in React?
Asked in 9 of 154 interviews · last asked Oct 8 · Concept · Junior
Show answer
A controlled input gets its value from React state and updates that state through an event handler. An uncontrolled input keeps its current value in the DOM. Use controlled inputs when validation or other UI must update as the user types. Use uncontrolled inputs for simpler forms where you read values on submit.
- Controlled inputs use value or checked, with onChange to update state.
- Uncontrolled inputs use defaultValue or defaultChecked to set initial values.
- Read uncontrolled values through refs or FormData.
- An input should not switch between controlled and uncontrolled during its lifetime.
What the interviewer checks: The interviewer checks whether you understand who owns the input value and when each approach fits.
Other ways it was asked
- “What are controlled and uncontrolled components in React, and when would you use each?”
- “In React, can you explain the difference between a controlled and uncontrolled component, and when you choose one over the other?”
- “Can you explain controlled and uncontrolled components in React?”
What is Redux, and why would you use it in React?
Asked in 8 of 154 interviews · last asked Oct 15 · Concept · Junior
Show answer
Redux is a library for managing shared application state in a central store. It updates state through dispatched actions and reducers, making changes predictable and easier to debug. In React, React-Redux connects components to the store. I would use it for complex shared state, not for every piece of local component state.
- Actions describe events; reducers calculate the next state without side effects.
- React-Redux provides useSelector to read state and useDispatch to send actions.
- Redux Toolkit is the recommended way to write Redux code.
- Redux adds structure and tooling, but local state is often enough for simpler apps.
What the interviewer checks: The interviewer is checking whether you understand Redux’s data flow, React integration, and when it is useful.
Other ways it was asked
- “What is Redux?”
- “Can you explain what Redux does?”
- “What is Redux, and how does it help manage application state?”
How do you choose between local state, Context, state libraries, and server-state tools in React?
Asked in 7 of 154 interviews · last asked Oct 20 · Concept · Mid-level
Show answer
I choose based on who needs the state and where it comes from. I use local state for one component and lift it to a shared parent when needed. Context shares values across a subtree; a state library helps manage complex shared client state. Server-state tools handle fetched data, caching, and refetching.
- Use useState or useReducer locally before adding app-wide state.
- Context shares values, but changing its value re-renders components that read it.
- Libraries like Redux Toolkit or Zustand offer shared stores and selective subscriptions.
- Tools like TanStack Query manage server data, including loading, errors, caching, and invalidation.
What the interviewer checks: The interviewer checks whether you match each kind of state to a suitable tool without adding unnecessary complexity.
Other ways it was asked
- “How do you manage component state in a React application?”
- “What are the different ways to manage state in a React application?”
- “What are the options for centralized state management in a React application?”
What's the difference between server-side rendering and client-side rendering in Next.js?
Asked in 7 of 154 interviews · last asked Sep 14 · Concept · Mid-level
Show answer
Server-side rendering (SSR) builds HTML on the server for each request; client-side rendering (CSR) builds content in the browser using JavaScript. SSR can show content sooner and helps search engines read it. CSR suits private dashboards where search visibility matters less. SSR pages still use client JavaScript and hydration to make React components interactive.
- SSR adds server work per request; slow data fetching can delay the response.
- CSR may show a loading state while JavaScript and data load.
- Next.js can combine server-rendered content with client-side updates.
- In Next.js, 'use client' does not mean browser-only rendering; Client Components can also be prerendered.
What the interviewer checks: The interviewer checks whether you understand where rendering happens and the trade-offs for loading, search visibility, and interactivity.
Other ways it was asked
- “What is the difference between server-side rendering (SSR) and client-side rendering (CSR) in Next.js?”
- “When would you use client-side rendering rather than server-side rendering in Next.js?”
- “What is server-side rendering in Next.js?”
What are components in React?
Asked in 6 of 154 interviews · last asked Sep 10 · Concept · Junior
Show answer
Components are reusable building blocks for a React user interface. They describe what to show and can receive data through props. Components can be functions or classes, but modern React mainly uses function components. You combine small components to build larger screens.
- Props pass data from a parent component to a child.
- Components can use state to track data that changes.
- Function components use Hooks for state and other React features.
- Component names must start with a capital letter when used in JSX.
JavaScriptfunction Greeting({ name }) { return <h1>Hello, {name}!</h1>; } export default function App() { return <Greeting name="Sam" />; }What the interviewer checks: The interviewer is checking whether you understand reusable UI parts, props, and the main component types.
Other ways it was asked
- “What is a component in React?”
- “What are the different types of components in React?”
- “What are React components?”
How do useEffect, useMemo, and useCallback differ, and when would you use each?
Asked in 6 of 154 interviews · last asked Sep 18 · Concept · Mid-level
Show answer
useEffect runs side effects after React commits an update, such as connecting to a service. useMemo caches a calculation result to avoid expensive work during rendering. useCallback caches a function reference, not its result, which can help memoized children skip rendering. Use the last two for performance, not to make code work correctly.
- Dependencies control reruns and cache updates; React compares each dependency using Object.is.
- Effects can return cleanup functions to remove subscriptions or cancel ongoing work.
- useMemo calculations run during rendering and must be pure.
- useCallback does not call your function or prevent renders by itself.
What the interviewer checks: The interviewer checks whether you distinguish side effects from caching values and function references, and know when each helps.
Other ways it was asked
- “What is the difference between useMemo and useCallback?”
- “What is the difference between useMemo and useCallback, and when would you use them?”
- “What are the differences between useEffect, useMemo, and useCallback?”
How does useState work, and why use it instead of a normal variable?
Asked in 6 of 154 interviews · last asked Oct 16 · Concept · Junior
Show answer
useState is a React Hook that lets a function component remember a value between renders. It returns the current value and a setter that requests a re-render when the value changes. A normal local variable is recreated on each render, and changing it does not tell React to update the screen.
- Call useState at the top level of a component or custom Hook, not inside conditions or loops.
- The setter updates state for the next render, not the current render.
- Use a function update when the new value depends on the previous value.
JavaScriptimport { useState } from 'react'; export default function Counter() { const [count, setCount] = useState(0); return ( <button onClick={() => setCount(previous => previous + 1)}> Count: {count} </button> ); }What the interviewer checks: The interviewer is checking whether you understand how state persists between renders and makes React update the screen.
Other ways it was asked
- “What is useState in React?”
- “What is the purpose of useState in React?”
- “What is the useState hook in React, and when would you use it?”
How do Angular and React differ, and how would you choose between them?
Asked in 5 of 154 interviews · last asked Oct 16 · Concept · Mid-level
Show answer
Angular is a full framework; React is a library for building user interfaces. Angular includes more tools and conventions, while React leaves more choices to the team. I would choose based on team skills, project needs, and the structure or flexibility we want. AngularJS is an older, unsupported framework, not modern Angular.
- Angular provides official routing and forms tools; React usually needs extra libraries for these features.
- Choose Angular when shared conventions help the team; choose React when flexibility matters more.
- Consider existing code and maintenance costs, not just popularity.
- Avoid AngularJS for new applications because official support has ended.
What the interviewer checks: The interviewer is checking whether you understand the differences and can explain a choice based on real project needs.
Other ways it was asked
- “What is the difference between Angular and React?”
- “What is the difference between React and Angular?”
- “Can you tell me the difference between Angular and React.js?”
What is the difference between functional components and class components in React?
Asked in 5 of 154 interviews · last asked Oct 19 · Concept · Junior
Show answer
Function components are JavaScript functions that return UI and use Hooks for state and effects. Class components extend React.Component and use this.state and lifecycle methods. React recommends function components for new code, but class components are still supported.
- Both receive props and describe reusable parts of the UI.
- Hooks work in function components, not class components.
- Function components are not automatically faster; performance depends on how the component is written.
- Writing an error boundary directly in React still requires a class component.
What the interviewer checks: The interviewer checks whether you understand both component styles, how they manage state, and which to choose.
Other ways it was asked
- “What is the difference between functional components and class components?”
- “What are the syntax, performance, and use-case differences between React functional and class components?”
- “What are the differences between class-based and function-based React components?”
What is JSX in React?
Asked in 5 of 154 interviews · last asked Oct 3 · Concept · Junior
Show answer
JSX is a syntax extension for JavaScript that lets you write HTML-like markup in your code. A build tool turns it into JavaScript calls that create React elements. These elements describe what React should display. JSX makes UI code easier to read, but React does not require it.
- JSX looks like HTML, but it follows JavaScript rules and has some different attributes, such as className.
- Use curly braces to include JavaScript expressions in JSX.
- A React element describes UI; it is not an actual DOM node.
JavaScriptfunction Greeting({ name }) { return <h1 className="greeting">Hello, {name}!</h1>; }What the interviewer checks: The interviewer wants to know how JSX relates to JavaScript, React elements, and the displayed UI.
Other ways it was asked
- “What is JSX?”
- “Why do we use JSX in React?”
- “What is a JSX element?”
Can you describe the difference between useEffect and useLayoutEffect, and when you would use each?
Asked in 5 of 154 interviews · last asked Oct 6 · Concept · Mid-level
Show answer
useEffect runs after React commits changes, usually after the browser paints. useLayoutEffect runs after DOM updates but before paint, blocking it. I use useEffect for requests, subscriptions, and other work that does not need to block display. I use useLayoutEffect to measure layout and fix positioning before users see it.
- Prefer useEffect unless work must happen before paint to prevent a visible flicker.
- useLayoutEffect blocks painting, so slow work inside it delays what users see.
- Effects triggered by interactions may run before paint, so useEffect does not guarantee after-paint timing.
- Neither hook runs during server rendering.
What the interviewer checks: The interviewer checks whether you understand effect timing and can choose between avoiding flicker and avoiding blocked rendering.
Other ways it was asked
- “In React, what's the difference between useEffect and useLayoutEffect, and when would you choose one over the other?”
- “What is the difference between useEffect and useLayoutEffect?”
- “What are hooks, and what is the difference between useEffect and useLayoutEffect?”
How does useReducer work, and when would you choose it over useState?
Asked in 5 of 154 interviews · last asked Oct 6 · Concept · Mid-level
Show answer
useReducer manages state with a reducer function that takes the current state and an action, then returns the next state. The hook returns the state and a dispatch function for sending actions. I choose it over useState when updates are complex or several state values need to change together.
- Reducers must be pure: return new state without mutating existing state or causing side effects.
- Actions describe what happened, keeping related update rules in one place.
- Use useState for simple, independent values; useReducer adds structure but also more code.
- As logic grows, use clear action names, extract helper functions, and test the reducer separately.
What the interviewer checks: The interviewer checks whether you understand reducer updates and can choose the right tool for state complexity.
Other ways it was asked
- “What is useReducer in React?”
- “What is the purpose of useReducer?”
- “What is a reducer in React?”
How do you organize component and application state as a React application grows?
Asked in 4 of 154 interviews · last asked Jun 19 · Concept · Senior
Show answer
I keep state close to where it is used and lift it to a common parent when components share it. I use Context for shared values like theme, and Redux when shared state has complex updates. I keep server data in a query cache. I organize state by feature rather than putting everything in one global store.
- Use useState for simple local state and useReducer for complex local updates.
- Calculate values from existing state instead of storing duplicate state.
- Context shares values; consumers re-render when their provider’s value changes.
- Use custom hooks to reuse state logic; separate hook calls do not automatically share state.
What the interviewer checks: The interviewer checks whether you can choose clear state ownership and add shared state tools only when needed.
Other ways it was asked
- “In React, how do you manage component-level and application-wide state, where would you store gallery data, and how would that data flow through the application?”
- “How do you manage component state as a TypeScript and React UI grows in complexity? What techniques do you use, such as lifting state, hooks, or a state-management library?”
- “How do you manage global application state with Redux or the Context API?”
How do React and Next.js differ, and when would you choose Next.js?
Asked in 4 of 154 interviews · last asked Oct 6 · Concept · Junior
Show answer
React is a library for building user interfaces. Next.js is a framework built on React that adds routing, server rendering, and static page generation. I would choose Next.js for a public site that needs searchable content or server features. I would choose React without Next.js when I want a simple client-side app or more control over tools.
- Next.js uses React; it does not replace it.
- Next.js provides routing and rendering options that otherwise need separate tools or setup.
- Server rendering and static generation can help SEO, but do not guarantee better performance.
- A client-only React app can use static hosting; Next.js server features need a server runtime.
What the interviewer checks: The interviewer is checking whether you understand library versus framework and can choose based on project needs.
Other ways it was asked
- “What factors would you consider when choosing between Next.js and React for the frontend?”
- “What factors would you consider when choosing between React and Next.js for the frontend, excluding Next.js full-stack features?”
- “What business factors would you consider when choosing between React and Next.js?”
React basics and components interview questions
Start with questions about React basics, framework comparisons, JSX, props, component types, events, lists, and small UI coding tasks. 32 questions.
How do React components and web components differ, and when would you choose each?
Asked in 2 of 154 interviews · last asked Oct 16 · Concept · Mid-level
Other ways it was asked
- “What is the difference between React components and web components?”
- “How do you distinguish between using React components and custom elements in your front-end projects, and what factors influence your decision?”
How would you build a React app with a button that increments a counter by one each time it is clicked?
Asked in 2 of 154 interviews · last asked Aug 25 · Write code · Junior
Other ways it was asked
- “Can you write React code that counts up by one each time you click a button?”
- “Can you build a React frontend for a button that increments a displayed count by one each time it is clicked?”
- “How would you build a React app with a button that increments a counter by two each time it is clicked?”
How would you implement a toggle switch in React?
Asked in 2 of 154 interviews · last asked Aug 28 · Write code · Junior
Other ways it was asked
- “Can you implement a toggle switch in React?”
What is the difference between React and plain JavaScript in terms of their core purposes and functionalities?
Asked in 2 of 154 interviews · last asked Sep 13 · Concept · Junior
Other ways it was asked
- “What is the difference between React and plain JavaScript?”
What is the difference between React and Django?
Asked in 2 of 154 interviews · last asked Oct 5 · Concept · Junior
How do you send data from a child component to a parent component in React?
Asked once · last asked Sep 29 · Concept · Mid-level
Other ways it was asked
- “Can you quickly write code to send data from a child component to a parent component in React?”
What is the difference between the MEAN and MERN stacks?
Asked once · last asked Apr 3 · Concept · Junior
Why was `bind` commonly used in older versions of React?
Asked once · last asked Apr 27 · Concept · Mid-level
Can you build a simple counter component in React using JavaScript?
Asked once · last asked May 26 · Write code · Junior
What is the difference between React Native and React?
Asked once · last asked Aug 24 · Concept · Junior
Can you tell me the difference between React, Angular, and NestJS?
Asked once · last asked Sep 14 · Concept · Junior
Why shouldn’t we use array indexes as React keys?
Asked once · last asked Sep 18 · Concept · Mid-level
Show 14 more
Do you think React's ecosystem of tools is a strength or a weakness, given that React itself provides limited functionality out of the box?
Asked once · last asked Dec 18 · Mid-level
How do you render API results returned as an array in a React frontend?
Asked once · last asked Sep 30 · Tooling · Junior
Other ways it was asked
- “How do you render API results in an array in a React frontend?”
Why should you use a key when rendering lists?
Asked once · last asked Oct 6 · Concept · Junior
What are the strengths and weaknesses of React compared with Vue.js?
Asked once · last asked Oct 19 · Concept · Mid-level
What do you recommend for the UI: Angular, React, Vue.js, or another framework?
Asked once · last asked Oct 19 · Design · Senior
What are the main differences between Angular, React, and Vue, and which one would you use for which type of project?
Asked once · last asked Oct 23 · Concept · Mid-level
How does React work on a fundamental level?
Asked once · last asked Sep 3 · Concept · Mid-level
Other ways it was asked
- “And how does React actually work on a fundamental level?”
Why do we use function-based components in React?
Asked once · last asked Apr 8 · Concept · Junior
How does a component work?
Asked once · last asked May 9 · Concept · Junior
What is a class component?
Asked once · last asked May 9 · Concept · Junior
How can data be passed between components?
Asked once · last asked May 9 · Concept · Junior
What are the core JavaScript concepts used in React?
Asked once · last asked Jun 4 · Concept · Mid-level
Can you give an example of a React Fragment and show its syntax?
Asked once · last asked Jul 28 · Concept · Junior
What is a React component, and why is breaking a page into small components useful?
Asked once · last asked Sep 15 · Concept · Junior
React Hooks and useEffect interview questions
Explore built-in and custom Hooks, effect dependencies, lifecycle behavior, closures, refs, cleanup, and request cancellation. 31 questions.
How would you use AbortController and effect cleanup to cancel requests on unmount or dependency changes?
Asked in 2 of 154 interviews · last asked Jul 16 · Tooling · Mid-level
Other ways it was asked
- “In React, where would you create and store the AbortController, and how would you ensure it aborts on unmount or when a new request starts?”
- “How would you use a React effect's cleanup function to cancel an in-flight request?”
How do you prevent stale promises from updating state after unmount or after a newer request starts?
Asked in 2 of 154 interviews · last asked Jul 16 · Scenario · Mid-level
Other ways it was asked
- “How do you prevent setting state from a resolved promise after a component unmounts or after a newer request has already started?”
- “How would you prevent a React component from updating state after it has unmounted?”
What is useRef, and what are its common use cases?
Asked in 2 of 154 interviews · last asked Jul 16 · Concept · Junior
Other ways it was asked
- “What is useRef in React?”
- “What is the useRef hook in React, and when would you use it?”
- “What are the two common use cases for useRef?”
How does adding notifications and threshold to a React effect's dependency array affect state updates?
Asked once · last asked Mar 29 · Concept · Mid-level
Why might a `useEffect` run again on every render even when its dependency is an array created with `useMemo`, and how can you prevent that?
Asked once · last asked Apr 27 · Scenario · Senior
If one state depends on another, why not just set both directly instead of using useEffect?
Asked once · last asked Jul 16 · Concept · Mid-level
In React, how does JavaScript closure behavior affect useEffect or event handlers, and how do you avoid stale state or props?
Asked once · last asked Jul 3 · Concept · Senior
In React 18, if the user types into a search box and you fetch suggestions on each keystroke, how would you structure this with useEffect cleanup and AbortController to avoid both stale updates and wasted network?
Asked once · last asked Jul 26 · Scenario · Senior
In React 18, what problems can useEffect dependency mistakes cause under Strict Mode and concurrent rendering, and how do you avoid stale closures without over-triggering effects?
Asked once · last asked Sep 16 · Concept · Senior
When you're building an idempotent useEffect that fetches data, how do you prevent duplicate network requests and ensure cancellation and consistency if a newer request supersedes an older one?
Asked once · last asked Sep 16 · Scenario · Senior
What is the difference between useState and useEffect?
Asked once · last asked Sep 18 · Concept · Mid-level
Why can't React Hooks be called inside loops, conditions, or nested functions?
Asked once · last asked Sep 19 · Concept · Mid-level
Show 13 more
Which React hooks would you use to fetch movie data when a user changes the selected genre?
Asked once · last asked Sep 30 · Tooling · Junior
How can you use useEffect to replace class component lifecycle behavior, including cleanup such as clearing an interval?
Asked once · last asked Oct 2 · Concept · Mid-level
In a React application with two pages, how would you implement a timer that pauses when the user navigates away and resumes from its previous value when they return?
Asked once · last asked Oct 12 · Scenario · Mid-level
Other ways it was asked
- “In React, I have two pages. A timer is increasing, and when the user navigates to another page, the timer should pause. When the user returns to the timer page, it should restart from where it previously stopped. How do you resolve it?”
Can you implement a custom React hook that returns a debounced search value?
Asked once · last asked Oct 19 · Write code · Mid-level
Other ways it was asked
- “Can you implement a custom debounced search hook in React?”
How can you prevent a React effect from running twice during local development?
Asked once · last asked Jan 20 · Scenario · Mid-level
Can you explain custom hooks and give me an example?
Asked once · last asked Oct 15 · Concept · Junior
What does useCallback do?
Asked once · last asked Jun 24 · Concept · Junior
What are the lifecycle methods of React class components?
Asked once · last asked Jul 16 · Concept · Junior
Can you explain the useCallback hook and give an example?
Asked once · last asked Jul 28 · Concept · Junior
How do you pass a ref to a React component?
Asked once · last asked Sep 7 · Tooling · Mid-level
What is a closure in React?
Asked once · last asked Oct 6 · Concept · Mid-level
What are dependency arrays used for in React?
Asked once · last asked Oct 12 · Concept · Junior
What is React's forwardRef used for?
Asked once · last asked Dec 29 · Concept · Junior
React state management and Redux interview questions
Compare state ownership, lifting state, Context, Redux, Zustand, selectors, and server-state caching with React Query and SWR. 41 questions.
How do you prevent unnecessary rerenders when using Context for state in a large React application?
Asked in 3 of 154 interviews · last asked Oct 3 · Scenario · Senior
Other ways it was asked
- “How do you prevent unnecessary re-renders when using context for state with useReducer in a large React app?”
- “How do you prevent unnecessary rerenders for consumers when a context value is an object that changes often? What specific patterns or APIs do you rely on?”
- “How do you prevent Context from re-rendering large subtrees?”
When would you use TanStack Query, and how do you fetch, cache, and refresh server data?
Asked in 3 of 154 interviews · last asked Oct 8 · Concept · Mid-level
Other ways it was asked
- “How do you fetch, cache, and reload API responses with React Query?”
- “Can you share an example where you used TanStack Query to manage server state across complex UI interactions?”
- “Why did you use TanStack Query?”
What is React Context, and when would you use it for state management?
Asked in 3 of 154 interviews · last asked Sep 2 · Concept · Junior
Other ways it was asked
- “When would you use React Context, and is it best suited to small use cases?”
- “Can you tell me about a time when you used the React Context API for state management and what challenges you encountered?”
Does Redux make sense in a modern greenfield project, or would you choose another state-management approach?
Asked in 2 of 154 interviews · last asked Oct 6 · Concept · Mid-level
Other ways it was asked
- “Would you choose Redux or another state management solution for a new project, and why?”
When would you choose Redux over the Context API, and why?
Asked in 2 of 154 interviews · last asked Oct 12 · Scenario · Mid-level
Other ways it was asked
- “If an application only has React Context and Redux available, which would you choose to start using, and why?”
- “When do you use Redux, and when do you use the Context API?”
What problems do React Query or SWR solve compared with fetching data manually?
Asked in 2 of 154 interviews · last asked Jul 26 · Concept · Senior
Other ways it was asked
- “Would you choose React Query or SWR over a hand-rolled useEffect plus refs approach? And what cache invalidation scenario pushes you to that choice?”
- “What limitations does the Fetch API have, and what problems does React Query help solve?”
How do local component state and global store state differ, and when should you use each?
Asked in 2 of 154 interviews · last asked Sep 7 · Concept · Mid-level
Other ways it was asked
- “In a React app using Redux or Zustand, how do you decide whether state belongs in a global store or should remain local to a component?”
- “What is the difference between local state and Redux state?”
How do you structure Redux state and selectors to minimize unnecessary rerenders in a large application?
Asked in 2 of 154 interviews · last asked Oct 3 · Scenario · Senior
Other ways it was asked
- “How do you structure Redux state and selectors to prevent unnecessary rerenders when many components subscribe to related slices?”
- “In a large Redux store, what techniques do you use to minimize renders from selectors, and when would you split slices or use multiple stores?”
How would you review front-end state management logic, such as in React or Vue, to ensure it is predictable, testable, and easy to debug?
Asked once · last asked May 15 · Scenario · Senior
How do you decide whether state should live in a parent component, a child component, or a shared store or context?
Asked once · last asked May 29 · Scenario · Mid-level
How do you manage server state with React Query and SWR?
Asked once · last asked Jun 4 · Tooling · Mid-level
Is useEffect appropriate for caching data in React, and why?
Asked once · last asked Jun 24 · Concept · Mid-level
Show 26 more
For derived data such as filtered or sorted lists, would you compute it in memoized selectors or store it in Redux or Zustand, and why?
Asked once · last asked Jul 27 · Concept · Mid-level
What is the biggest disadvantage that makes you move away from context API toward a third-party state manager?
Asked once · last asked Aug 5 · Concept · Mid-level
What is the difference between TanStack Query and Redux, and when would you use each?
Asked once · last asked Aug 28 · Concept · Mid-level
When do we use Redux, and when do we use props?
Asked once · last asked Sep 8 · Concept · Junior
When might you not need a global state manager such as Redux?
Asked once · last asked Dec 18 · Scenario · Mid-level
How do Context and a state library like Redux or Zustand differ in render behavior?
Asked once · last asked Oct 3 · Concept · Senior
How would you implement optimistic updates for a mutation in Redux Toolkit, including rollback on failure while keeping derived selectors consistent?
Asked once · last asked Oct 3 · Scenario · Senior
When would you choose Zustand over Redux Toolkit for a senior-level React app, and what trade-offs do you consider around dev tools, middleware, testability, and team conventions?
Asked once · last asked Oct 3 · Design · Senior
Could you walk me through a specific example where you used the Context API in a project, what issues you encountered, and how you resolved them?
Asked once · last asked Dec 23 · Behavioral · Mid-level
How can Redux handle asynchronous operations, and what role does Redux Saga play?
Asked once · last asked Oct 15 · Concept · Mid-level
In a React and TypeScript app consuming a payments API, how would you structure data fetching and cache invalidation for the payments list and create-payment flow so the UI stays consistent after mutations?
Asked once · last asked Oct 22 · Design · Mid-level
In React, how do you manage server state fetching, caching, and invalidation for a large app, and why would you choose React Query over Redux for that?
Asked once · last asked Oct 24 · Tooling · Mid-level
Would you use TanStack Query for frontend data fetching and caching in an e-commerce catalog whose backend uses Redis?
Asked once · last asked Mar 21 · Scenario · Mid-level
Other ways it was asked
- “Why would you use TanStack Query for frontend data fetching and caching in an e-commerce catalog whose backend uses Redis?”
What is useContext?
Asked once · last asked Apr 7 · Concept · Junior
Other ways it was asked
- “What do you use useContext for?”
What is prop drilling in React?
Asked once · last asked Apr 7 · Concept · Junior
Does Redux manage page state or application state?
Asked once · last asked Oct 10 · Concept · Junior
What is the Context API in React?
Asked once · last asked Feb 4 · Concept · Junior
What does local caching mean in a React application?
Asked once · last asked Feb 23 · Concept · Mid-level
Why would you use useContext for state?
Asked once · last asked Apr 7 · Concept · Mid-level
Other ways it was asked
- “Why use React's useContext for state when useState can also manage state?”
Can you give me one disadvantage of prop drilling?
Asked once · last asked Apr 7 · Concept · Junior
What is state lifting in React?
Asked once · last asked Apr 8 · Concept · Junior
What is the purpose of the React Query library?
Asked once · last asked May 13 · Concept · Junior
Can you explain in your own words how props flow through components versus how state is owned and updated within a component?
Asked once · last asked May 29 · Concept · Junior
How do actions and reducers work in Redux?
Asked once · last asked Jun 19 · Concept · Junior
What is the purpose of middleware in React?
Asked once · last asked Jul 31 · Concept · Junior
How would you visualize application state as a tree in React?
Asked once · last asked Sep 3 · Concept · Mid-level
React forms, API integration and authentication interview questions
Work through questions on controlled inputs, validation, backend data flow, CRUD, uploads, WebSockets, authentication, authorization, and secure API integration. 26 questions.
How would you connect a React frontend to a backend API, such as Python or FastAPI?
Asked in 3 of 154 interviews · last asked Sep 10 · Design · Mid-level
Other ways it was asked
- “How do you approach integrating the back end and front end, for example, a FastAPI service with a React front end?”
- “How would you connect a React frontend to a Python backend?”
- “How would you integrate a React front end with a back end in a web application?”
How do you send user-entered data to a backend API using a POST request in React?
Asked in 2 of 154 interviews · last asked Sep 30 · Scenario · Mid-level
Other ways it was asked
- “How do you pass user-entered text from a React application to a backend API?”
- “How do you pass user text from React state to a backend API?”
- “How do you send a POST request to an API from a React frontend?”
How would you implement authentication using JWT in a React application?
Asked in 2 of 154 interviews · last asked Sep 9 · Tooling · Mid-level
Other ways it was asked
- “How would you securely store a JWT in a React application?”
How do you handle validation between React and Spring Boot when a user sends a request from the frontend to the backend?
Asked once · last asked Mar 25 · Scenario · Mid-level
How would you design and optimize a React component for data loading, form validation, API errors, and performance?
Asked once · last asked Jun 24 · Scenario · Senior
How do you consume a response from a backend API in a React frontend?
Asked once · last asked Jul 30 · Tooling · Mid-level
When a user clicks a Generate button in React, what happens, and how do you pass request parameters?
Asked once · last asked Jul 30 · Tooling · Mid-level
How do you manage a query in React state and include it in a POST request to the backend?
Asked once · last asked Jul 31 · Scenario · Mid-level
How would you handle authentication and authorization in a React app, especially when dealing with protected routes?
Asked once · last asked Aug 8 · Scenario · Mid-level
When I click a button in a React component and expect a list of products from an API, what are the steps from click to the list showing on the screen?
Asked once · last asked Sep 2 · Scenario · Mid-level
In a React, Node.js, Express, and PostgreSQL app, walk me through the end-to-end data flow when a user submits a form to create a new record, including validation and error handling.
Asked once · last asked Sep 3 · Scenario · Mid-level
When validation fails, how would you structure the API response, including its status code and error shape, so a React client can map errors to individual fields or display a global error?
Asked once · last asked Sep 3 · Scenario · Mid-level
Other ways it was asked
- “When validation fails, how would you structure the API response, including the status code and error shape? How should the React client map that into field-level errors versus a global error?”
Show 13 more
How would you keep the user flow simple and prevent inconsistent data when integrating a React front end with a back end?
Asked once · last asked Sep 10 · Scenario · Mid-level
In React, can you write code to fetch data from multiple APIs simultaneously and show it in the UI?
Asked once · last asked Sep 17 · Write code · Mid-level
Where would you initialize a WebSocket in a React component, how would you handle reconnection, and where would you clean up the connection?
Asked once · last asked Sep 18 · Tooling · Mid-level
How do forms in React differ from ASP.NET Web Forms and other .NET form models?
Asked once · last asked Sep 19 · Concept · Mid-level
In an uncontrolled React component, what does it mean for the DOM to manage an input's value?
Asked once · last asked Oct 8 · Concept · Mid-level
Besides useRef, how can you access input values in an uncontrolled React component without controlling the input with state?
Asked once · last asked Oct 8 · Concept · Mid-level
Other ways it was asked
- “What else can we use for an uncontrolled component besides useRef, since useState would make it controlled?”
How do you implement CRUD functionality in a React application?
Asked once · last asked Oct 23 · Concept · Mid-level
How would you implement image uploads, pagination, and Excel import/export in a React application?
Asked once · last asked Oct 23 · Scenario · Mid-level
How do you use Ant Design's Upload component to implement image uploads in a React application?
Asked once · last asked Oct 23 · Tooling · Mid-level
What is React Hook Form used for?
Asked once · last asked May 13 · Concept · Junior
What approaches can you use to load data in a React component?
Asked once · last asked Jun 24 · Concept · Mid-level
Where in a React frontend do you call the backend API?
Asked once · last asked Jul 31 · Concept · Junior
Which libraries do you use to address security in React applications?
Asked once · last asked Aug 24 · Tooling · Mid-level
React TypeScript interview questions
Check typed props, discriminated unions, reducers, refs, polymorphic components, and type-safe React code. 7 questions.
How would you type a polymorphic React component with an as prop and correctly typed refs?
Asked in 2 of 154 interviews · last asked Jul 19 · Concept · Senior
Other ways it was asked
- “How would you type a reusable React component with an as prop so that when as is an anchor you get anchor props, and when as is a button you get button props, including correct ref types?”
- “How would you model a polymorphic React component in TypeScript?”
- “In a polymorphic React component typed with TypeScript, how do you ensure the ref type matches each rendered element, and which type utilities can infer the instance type?”
How do you reliably narrow a discriminated union of React component props inside the component?
Asked once · last asked Jul 22 · Concept · Senior
Other ways it was asked
- “How do you reliably narrow a discriminated union of React component props, and what pitfalls can arise in JSX or inline callbacks?”
How do you use TypeScript to improve code quality in React projects?
Asked once · last asked Oct 15 · Tooling · Mid-level
In a React plus TypeScript app, how do you type a reducer so dispatch only accepts valid actions and the reducer stays exhaustively checked as actions evolve?
Asked once · last asked Jul 19 · Concept · Senior
How would you model a React component's props with a discriminated union so that when variant is linked it requires ref, and when variant is button it requires onClick?
Asked once · last asked Jul 22 · Concept · Senior
In a React component props API, when do you prefer interface extends versus type intersections, and what edge case drives that choice?
Asked once · last asked Jul 28 · Concept · Senior
Can you add TypeScript types for the users and filtered users, and optimize the code for React 18 without the React compiler?
Asked once · last asked Oct 14 · Write code · Mid-level
React rendering and performance interview questions
Review the virtual DOM, reconciliation, rerenders, memoization, batching, concurrent rendering, profiling, code splitting, and large-list optimization. 29 questions.
In React 18, how does automatic batching change when state updates trigger renders, especially across promises or timeouts?
Asked in 3 of 154 interviews · last asked Oct 3 · Concept · Senior
Other ways it was asked
- “In React 18, what changes did automatic batching introduce, and how can it affect state updates triggered inside promises, timeouts, or async handlers?”
- “In React 18, how do you explain the impact of automatic batching and concurrent rendering on state updates and side effects? What pitfalls have you seen?”
How do React.memo, useMemo, and useCallback affect rerenders, and what makes memoization ineffective?
Asked in 3 of 154 interviews · last asked Sep 30 · Concept · Mid-level
Other ways it was asked
- “Do React.memo, useMemo, and useCallback prevent re-renders?”
- “In React 18, when would you use React.memo versus useMemo? And what is a common mistake that makes memoization ineffective?”
- “When would you use useMemo, useCallback, and React.memo, and what are the risks of overusing them?”
What do you mean by React reconciliation?
Asked in 2 of 154 interviews · last asked Aug 10 · Concept · Mid-level
Other ways it was asked
- “What is reconciliation in React?”
When should you use React's useMemo hook?
Asked in 2 of 154 interviews · last asked Mar 21 · Concept · Mid-level
Other ways it was asked
- “What is useMemo used for in React?”
How would you identify and fix performance problems in a React application?
Asked in 2 of 154 interviews · last asked Oct 19 · Scenario · Senior
Other ways it was asked
- “If a React application has a performance issue, how would you detect and fix it?”
- “How would you identify and resolve performance problems in a React application with a complex, data-driven dashboard?”
Since excessive use of useMemo and useCallback can become a bottleneck, how do you decide when to use them and avoid slowing down the application?
Asked in 2 of 154 interviews · last asked Jul 22 · Scenario · Senior
Other ways it was asked
- “How would you identify and resolve a performance issue related to excessive useMemo or useCallback, and decide whether to remove them?”
- “In a TS and React codebase, when do you reach for useMemo versus useCallback, and what criteria do you use to avoid over-memoization?”
How would you optimize rendering a large list with thousands of items in React?
Asked in 2 of 154 interviews · last asked Sep 18 · Scenario · Mid-level
Other ways it was asked
- “How would you optimize performance when rendering a large list of items in React?”
- “How would you optimize a React page that needs to display 10,000 records?”
What is React.memo?
Asked in 2 of 154 interviews · last asked Oct 6 · Concept · Junior
Other ways it was asked
- “Can you explain what React.memo is?”
When working on a feature that requires complex state management or high-frequency updates, what is your process for optimizing performance and preventing memory leaks in a React and TypeScript environment?
Asked once · last asked Apr 16 · Scenario · Senior
Other ways it was asked
- “In a React and TypeScript feature with complex state or frequent updates, how would you identify and address performance bottlenecks or potential memory leaks?”
In React 18 concurrent rendering, what kinds of side effects or code patterns become unsafe during render, and how do you keep render functions pure?
Asked once · last asked Apr 17 · Concept · Senior
How do you prevent unnecessary re-renders in a React SPA when passing callbacks and derived data deep into a component tree?
Asked once · last asked Jun 7 · Scenario · Senior
What does useMemo cache: the entire function or the result of a calculation?
Asked once · last asked Jun 24 · Concept · Mid-level
Show 15 more
Which React Hooks can help improve performance, and when would you use them?
Asked once · last asked Jul 16 · Concept · Mid-level
In React 18, how do you decide which updates should be wrapped in startTransition, and what user-visible trade-offs are you accepting by doing so?
Asked once · last asked Jul 26 · Concept · Senior
When you suspect a leak caused by global state in a Next.js app, how do you prevent rerenders in a large component tree, and when would you choose React.memo versus useMemo or useCallback?
Asked once · last asked Jul 27 · Scenario · Senior
How would you approach code splitting in a React application to improve performance, and what tools or techniques might you use?
Asked once · last asked Aug 8 · Scenario · Mid-level
How would you prevent a React text component from re-rendering unnecessarily?
Asked once · last asked Aug 13 · Scenario · Mid-level
How does the React component tree relate to the browser DOM tree?
Asked once · last asked Sep 3 · Concept · Mid-level
How would you debug and optimize a React page that takes five seconds to load?
Asked once · last asked Sep 9 · Scenario · Mid-level
When would you choose pagination over virtualization, or virtualization over pagination, to optimize a React page?
Asked once · last asked Sep 18 · Scenario · Mid-level
Can you explain the difference between the render phase and commit phase in React's Fiber architecture?
Asked once · last asked Sep 19 · Concept · Senior
In React, why might adding one row cause every row to rerender, and how would you prevent unnecessary rerenders?
Asked once · last asked Sep 22 · Scenario · Mid-level
Are extra renders in React 19 normal, or should they be investigated as a performance issue?
Asked once · last asked Oct 2 · Scenario · Senior
How would you build a highly interactive, data-dense React screen with TypeScript, keep it fast, and measure its performance?
Asked once · last asked Oct 5 · Behavioral · Senior
Other ways it was asked
- “Can you tell me about a time you built a highly interactive, data-dense React screen with TypeScript, how you kept it fast, and the performance numbers you achieved?”
How would you optimize filtering users in React 18 when using users.filter?
Asked once · last asked Oct 14 · Scenario · Mid-level
What is diffing in React?
Asked once · last asked Feb 4 · Concept · Junior
How does React handle state updates and component re-rendering?
Asked once · last asked Aug 28 · Concept · Junior
Next.js and React server rendering interview questions
Questions cover Next.js choices, server-side and client-side rendering, static generation, SEO, hydration, streaming, Server Components, and server-side data loading. 15 questions.
What are React Server Components, and how do you decide where to place the client boundary?
Asked in 3 of 154 interviews · last asked Oct 12 · Concept · Senior
Other ways it was asked
- “Can you explain what React server components are, how they work, and what their benefits are?”
- “In React, how would you use server-side components?”
- “What are React Server Components, and how do you decide where to place the “use client” boundary?”
How would you organize components and load resources when rendering a product listing page in Next.js?
Asked once · last asked Oct 8 · Scenario · Senior
What problems can happen if you accidentally use useLayoutEffect in code that also renders on the server, and how do you typically handle that?
Asked once · last asked Apr 17 · Scenario · Senior
How do you incorporate server-side rendering with Next.js in your applications, particularly when managing data-fetching requirements?
Asked once · last asked May 16 · Tooling · Mid-level
When choosing between static site generation with Next.js and traditional client-side rendering for a new project, what factors would influence your decision, and how would you weigh them?
Asked once · last asked May 16 · Scenario · Mid-level
What causes hydration mismatches in React, and how would you diagnose and fix one?
Asked once · last asked Sep 7 · Scenario · Senior
Other ways it was asked
- “How do you diagnose and fix hydration mismatch issues in a React application?”
- “What is a concrete example of a hydration mismatch, and how can it be resolved?”
How does streaming work with Next.js and React?
Asked once · last asked Oct 1 · Concept · Senior
When would you choose Next.js and server-side rendering for a web application?
Asked once · last asked Oct 2 · Concept · Mid-level
How can you get prerendering and SEO benefits for a static React site without using Next.js?
Asked once · last asked Oct 2 · Concept · Senior
What advantages might React 18 or 19 without Next.js offer for a new project?
Asked once · last asked Oct 2 · Concept · Mid-level
Other ways it was asked
- “Would you choose React 18 or React 19 for a new project, and which advantages of React 18 might matter?”
Can a React application support SEO, and what limitations or challenges should you consider?
Asked once · last asked Oct 6 · Concept · Junior
Other ways it was asked
- “Can React provide SEO, or can it not?”
- “Can React match Next.js for SEO, and if not, why not?”
What is hydration in web development?
Asked once · last asked Jun 4 · Concept · Mid-level
Show 1 more
What happens during hydration?
Asked once · last asked Sep 7 · Concept · Mid-level
React testing, debugging and error handling interview questions
Focus on hook testing, QA checks, runtime errors, error boundaries, incorrect UI data, and debugging. 13 questions.
How would you use error boundaries to handle route-level and component-level rendering failures in React?
Asked in 2 of 154 interviews · last asked Jul 26 · Scenario · Mid-level
Other ways it was asked
- “In a React app, how do you typically handle runtime rendering errors? Do you use error boundaries, and what do you show or log when a subtree crashes?”
- “How would you implement an error boundary strategy in a React SPA? Where would you place boundaries, and how would you handle route-level errors versus component-level errors?”
How would you handle errors on the client side in a Next.js application?
Asked once · last asked Oct 8 · Scenario · Mid-level
Other ways it was asked
- “How would you handle errors that occur on the server side in a Next.js application?”
In React, are error boundaries implemented as class components or function components?
Asked once · last asked Oct 12 · Concept · Mid-level
Other ways it was asked
- “How would you implement a React error boundary as a function component?”
- “What are error boundaries in React, and when would you use them?”
How would you approach debugging a “data.map is not a function” error in a user list written in TSX?
Asked once · last asked Oct 14 · Scenario · Mid-level
What bug can occur when an arrow function is used as an object method in a React app, and how can you avoid it?
Asked once · last asked Jul 27 · Scenario · Mid-level
If a component does not re-render after the current-user Apollo reactive variable is updated, what could be causing the problem?
Asked once · last asked Jul 28 · Scenario · Mid-level
How would you test a custom React hook?
Asked once · last asked Jul 28 · Scenario · Mid-level
What are some possible reasons an API might be called three times in a React application?
Asked once · last asked Sep 18 · Scenario · Mid-level
How would you think about state management, error states, and making sure you do not show misleading or partial data in a React UI for clinicians?
Asked once · last asked Sep 23 · Scenario · Senior
Why might a React todo list fail to reset its checkboxes after a refetch of server data?
Asked once · last asked Oct 12 · Scenario · Mid-level
How can you identify which React component is rendering?
Asked once · last asked Apr 7 · Tooling · Mid-level
What aspects of React should a QA tester understand to test a web application effectively?
Asked once · last asked Oct 3 · Concept · Junior
Show 1 more
What could cause a React todo list to render server-fetched data incorrectly?
Asked once · last asked Oct 12 · Scenario · Mid-level
React architecture and system design interview questions
Think through component patterns, design systems, responsive UI, maintainability, migrations, microfrontends, shared dependencies, and full app design. 24 questions.
How would you structure a large React application with clear component boundaries, shared UI, and reusable hooks?
Asked in 2 of 154 interviews · last asked Oct 3 · Design · Senior
Other ways it was asked
- “How would you structure or refactor a large React application to keep it maintainable over time?”
- “How do you structure a scalable React component architecture with folders, shared UI, hooks to avoid prop drilling, and clear boundaries?”
How would you structure the process for building a landing page with headless WordPress and a React frontend?
Asked once · last asked Jun 4 · Scenario · Mid-level
How do you integrate design systems when working with various tools or frameworks, such as React or Flutter?
Asked once · last asked Jun 24 · Tooling · Mid-level
What is your workflow for building web pages in React?
Asked once · last asked Jul 29 · Tooling · Mid-level
Other ways it was asked
- “How did you code your React web pages—what’s your actual workflow?”
How would you build a responsive React component that works across different screen sizes and devices?
Asked once · last asked Aug 10 · Behavioral · Mid-level
Other ways it was asked
- “Can you provide an example of a responsive front end component you built with React JS, and what considerations did you make for different screen sizes and devices?”
In a large frontend microfrontend setup, how would you manage shared dependencies like React and avoid version conflicts while keeping independent deploys?
Asked once · last asked Aug 11 · Design · Senior
How would you prevent a single shared React bundle from becoming a release bottleneck?
Asked once · last asked Aug 11 · Design · Senior
When multiple React versions can coexist, how would you avoid breaking shared state, context, or routing across microfrontends?
Asked once · last asked Aug 11 · Design · Senior
What design patterns can you use to architect front-end code in React?
Asked once · last asked Sep 22 · Concept · Senior
What are smart and dumb components in React, and how do you distinguish between them?
Asked once · last asked Dec 18 · Concept · Mid-level
How would you build a React UI shell for a portal with shared components, a design system, single sign-on, and features that can be enabled for different customer types?
Asked once · last asked Oct 2 · Design · Senior
How do you use Module Federation to share a single React version across repositories?
Asked once · last asked Oct 8 · Concept · Senior
Show 12 more
How would you apply SOLID and DRY principles when designing React components?
Asked once · last asked Oct 12 · Behavioral · Mid-level
Other ways it was asked
- “How have you applied SOLID and DRY principles when designing React components?”
How would you plan and execute the migration to modern React practices, especially when dependencies are inconsistent?
Asked once · last asked Oct 19 · Scenario · Senior
How would you build an AI agent with React, from end to end?
Asked once · last asked Oct 21 · Design · Senior
What is a higher-order component?
Asked once · last asked Apr 7 · Concept · Mid-level
How would you approach starting a project that uses .NET on the backend and React on the frontend?
Asked once · last asked Jun 22 · Scenario · Mid-level
Which React libraries do you use regularly, and how do you use them?
Asked once · last asked Aug 24 · Tooling · Mid-level
What key practices do you follow when building React applications?
Asked once · last asked Aug 24 · Concept · Mid-level
What common challenges should developers account for when building applications with React?
Asked once · last asked Oct 2 · Scenario · Mid-level
Would you use React with Rust, and under what circumstances?
Asked once · last asked Oct 15 · Scenario · Mid-level
What is a headless component?
Asked once · last asked Dec 29 · Concept · Junior
Other ways it was asked
- “What logic does a headless component provide?”
How is styling handled in a headless component?
Asked once · last asked Dec 29 · Concept · Junior
What is a higher-order component (HOC) in React?
Asked once · last asked Dec 29 · Concept · Mid-level
Live coding round next? Coding mode in the MeetAssist desktop app solves the problem on your screen, with your phone as the remote.
Related interview questions
- Software Engineer interview questions
- AI Engineer interview questions
- QA Engineer interview questions
- DevOps Engineer interview questions
- Angular interview questions
- Node.js interview questions
- Next.js interview questions
- HTML and CSS interview questions
- Spring Boot interview questions
- Android and Kotlin interview questions
- iOS and Swift interview questions
How this list is made
Every question here was asked by a real interviewer in a real job interview that a candidate ran MeetAssist in. After the call, the interviewer's questions are pulled from the transcript. Practice sessions, tests, exams and anything that was not a job interview are dropped.
Questions are rewritten so they make sense on their own: names of people, employers and clients are removed, and speech-to-text mistakes are fixed. Small talk, logistics and questions about one candidate's own résumé are left out. Rephrasings of the same question are merged, and the count is the number of different interviews it came up in.
The interviews come from candidates who use MeetAssist, so they lean towards software, data and AI roles: the shares describe these interviews, not every React interview. Answers to the most asked questions are written and checked by an editor; a "common mistake" is shown only when reviews of real answers in these interviews show it, with the count.
154 interviews, 115 candidates, Oct 2025 to Oct 2026. Updated every month with new interviews.
Or add the Chrome extension