Skip to the page

30 questions · 10 rounds

React frontend developer interview questions

Questions from real React frontend rounds, grouped by the round that asks them. Open one for the follow-ups, what a strong answer covers and the traps. Then say your answer out loud: see the React frontend mock interview.

Part 1 · 17 questions

Technical screen

  1. App Router vs Pages Router

    Next.js · Concept · Mid

    What are the differences between the App Router and the Pages Router? We have a large Pages Router app. Would you migrate, and how?

  2. call vs apply vs bind

    JS core · Concept · Mid

    Difference between call, apply and bind? Give a real use case for each.

  3. Hoisting output

    Output prediction · Write code · Mid

    Output, line by line? (code)

  4. Fix an infinite useEffect loop

    Hooks & effects · Write code · Mid

    This page hammers our API and freezes. Find the bug. (code)

  5. Keys and the index-as-key bug

    React fundamentals · Scenario · Mid

    We render this list, then insert a new item at the top. The text in the inputs shifts to the wrong rows and focus jumps. Why, and how do you fix it? (code)

  6. Core Web Vitals today

    Web performance · Concept · Mid, Senior

    What are Core Web Vitals? Name the core and non-core vitals and their thresholds. What happened to FID?

  7. Flexbox (center a div, and more)

    CSS · Build it · Mid

    Center a div horizontally and vertically, three ways. Then explain flex: 1, and why my flex item won't shrink below its content.

  8. What to unit test, integration test and end-to-end test

    Testing a feature · Trade-off · Mid, Senior

    For a React app with a cart and a checkout, how do you decide what to cover with unit tests, integration tests and end-to-end tests? Where would most of your tests go?

  9. What TypeScript gives you; type vs interface

    TypeScript · Concept · Mid

    What is TypeScript and what are its features? When do you use type vs interface?

  10. Storage options: cookies vs localStorage vs sessionStorage vs IndexedDB

    DOM & browser APIs · Trade-off · Mid, Senior

    Compare cookies, localStorage, sessionStorage and IndexedDB. Where would you store a cart, a JWT, user preferences, and 50 MB of offline data?

  11. React Server Components and the directives

    React 19 & Compiler · Concept · Senior

    What is a React Server Component? What do 'use client' and 'use server' actually mean? Is 'use server' how you mark a Server Component?

  12. Optimise a React app that suffers from frequent re-renders (step by step)

    React performance · Scenario · Senior

    Explain how you would optimise a React application that's suffering from frequent re-renders and slow UI updates. I want your step-by-step approach, not a list of tools.

  13. "How would you manage state in this app?"

    State & data fetching · Scenario · Senior

    Here's the app: product list with filters, cart, logged-in user, a live order-status widget. How would you manage state? Your team wants Redux and you think it's overkill. How do you…

  14. Forms at scale: react-hook-form, zod and server validation

    Forms, testing & security · Design · Senior

    Build a 30-field KYC form (PAN, Aadhaar, address, conditional GST fields) that stays fast and validates the same way on client and server. What's your approach?

  15. CORS and the same-origin policy

    Web security · Concept · Mid, Senior

    What is CORS? Why does my fetch to api.example.com work in Postman but fail in the browser? What is a preflight?

  16. Semantic HTML and why it matters

    Accessibility · Write code · Mid

    Why use semantic HTML? Fix this markup: a div with an onclick used as a button, a div soup header, and an image without alt text.

  17. useTransition vs useDeferredValue (vs debounce)

    Concurrent React & Suspense · Trade-off · Senior

    Typing in our search box lags because filtering 20k items re-renders a big list. Compare useTransition, useDeferredValue and debouncing for this.

Part 2 · 3 questions

JavaScript deep dive

  1. bind / call / apply polyfills

    Polyfills & utilities · Build it · Mid, Senior

    Write Function.prototype.myBind. Make it work with new. Then do myCall without using call/apply.

  2. async/await semantics and error handling

    Async & event loop · Concept · Mid, Senior

    What does async/await compile down to conceptually? How do you handle errors, run things in parallel, and avoid accidental waterfalls?

  3. Real-time: WebSockets vs SSE vs long polling

    Networking & HTTP · Trade-off · Senior

    Live order tracking, a chat app and a stock ticker. Which transport for each, and why?

Part 3 · 1 question

Machine coding

  1. Autocomplete / typeahead component

    Machine coding · Build it · Mid

    Create an autocomplete component that queries an API as the user types, with keyboard navigation and highlighting of the matched text.

Part 4 · 1 question

System design

  1. Autocomplete / typeahead (system-level)

    Frontend system design · Design · Senior

    Design a reusable autocomplete component that product teams across the company will use for search, user pickers and address lookup.

Part 5 · 1 question

Resume deep dive

  1. "Architected / built from scratch" — the whiteboard test

    Resume deep-dive · Your experience · Senior, Lead

    Draw the architecture of the system you 'architected'. Where does the data and state live? How does auth work? How is it built and deployed?

Part 6 · 1 question

Behavioural / HM

  1. Code-review and debugging rounds

    Leadership & behavioural · Write code · Senior

    "Here's a teammate's pull request in the stack you work in. Review it like a real PR." Or: "This app has bugs and four failing tests. Fix them while thinking aloud."

Part 7 · 1 question

Production incident

  1. Next.js: hydration errors flood the logs

    Production incidents · Scenario · Mid, Senior

    Since we moved the product page to server rendering, our logs show thousands of hydration errors a day. The page mostly looks fine. Should we care, and how do you fix it?

Part 8 · 3 questions

Techno-managerial

  1. A junior's pull request is weak

    Techno-managerial · Scenario · Senior, Lead

    A junior developer raises a PR for a new form. It works, but it has copy-pasted blocks, no tests, a 400-line component, and state in five places. The release is in two days. How do you…

  2. How you use AI tools day to day

    AI at work · Your experience · Mid, Senior

    How do you use AI tools in your work today? Give me a real example from the last month.

  3. What to alert on for a checkout page

    Monitoring & on-call · Design · Mid, Senior

    You own the checkout page of an e-commerce site. You get to set up alerts that can wake someone up at night. What would you alert on, and what would you only put on a dashboard?

Part 9 · 1 question

DSA for frontend

  1. Two Sum: return every pair (LeetCode 1)

    DSA · Build it · Mid, Senior

    Given an array and a target, return all pairs that add up to the target. For [1,5,2,6,8,9,10] and 7, return [1,6], [5,2], [2,5], [6,1]. Write it in JavaScript.

Part 10 · 1 question

Recruiter / HR round

  1. Background verification

    HR & recruiter · Your experience · Mid, Senior, Lead

    Our BGV partner will verify your employment history, including UAN service history, relieving letters and education. Is there anything we should know before we start?

Reading is not answering. Say it out loud.

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview