React Interview Questions 2026

Published July 22, 2026 · Updated July 22, 2026

36 React interview questions from Meta, Paytm, Accenture, PayU. All difficulty levels, all roles. Upvoted by engineers who were asked them.

36 questions
Companies: Meta, Paytm, Accenture, PayU
2226 upvotes

React Questions by Company

Meta (3)

Meta Hard Technical round ReactJavaScript

Explain how React's virtual DOM diffing algorithm (reconciliation) works. Why is it O(n) instead of O(n3)? What are the assumptions it makes and when do those break down (causing performance issues)?

↑ 56 upvotes · 34 engineers asked this · SDE2
Meta Medium Technical round 4–6 YearsReactJavaScript

What is the difference between useMemo and useCallback? Give concrete examples of when each actually helps vs. when it hurts.

↑ 107 upvotes · 84 engineers asked this · Full Stack Developer
Meta Hard Technical round 3-7 yearsReactJavaScript

A news feed component re-fetches and re-renders every item whenever a single like count changes. Walk through how you would restructure state so only the affected item re-renders, without introducing a global state library.

↑ 52 upvotes · 31 engineers asked this · Senior SDE

Paytm (1)

Paytm Hard Technical round JavaScriptReactREST

Explain Paytm's mini-app platform architecture. Third-party developers build apps that run inside the Paytm super-app. How do you sandbox them (security), manage their lifecycle, share user identity safely (OAuth), and handle payments on their behalf?

↑ 45 upvotes · 28 engineers asked this · SDE2

Accenture (9)

Accenture Medium Technical round 8–12 YearsJavaScriptHTMLReact

What is the difference between async and defer attributes in JavaScript? When would you use each one?

↑ 41 upvotes · 28 engineers asked this · Full Stack Developer
Accenture Medium Technical round 8–12 YearsReactCSSPerformance

What is Critical CSS, and how does it improve page load performance in React applications?

↑ 37 upvotes · 24 engineers asked this · Full Stack Developer
Accenture Medium Technical round 8–12 YearsReactNext.jsPerformance

What techniques can be used to optimize images in React or Next.js applications for better performance?

↑ 52 upvotes · 35 engineers asked this · Full Stack Developer
Accenture Medium Technical round 8–12 YearsJavaScriptCDNReact

How would you optimize video delivery in a web application to reduce load times and improve user experience?

↑ 33 upvotes · 21 engineers asked this · Full Stack Developer
Accenture Hard Technical round 8–12 YearsReactJavaScriptPerformance

What causes unnecessary re-renders in React, and how can React.memo, useMemo, and useCallback help improve performance?

↑ 78 upvotes · 54 engineers asked this · Full Stack Developer
Accenture Hard Technical round 8–12 YearsReactWebpackPerformance

A React application has a slow initial page load. What steps would you take to identify and fix the performance bottlenecks?

↑ 67 upvotes · 47 engineers asked this · Full Stack Developer
Accenture Medium Technical round 8–12 YearsJavaScriptReactPerformance

How would you optimize the loading of third-party scripts such as analytics, chat widgets, or advertising libraries?

↑ 49 upvotes · 33 engineers asked this · Full Stack Developer
Accenture Hard Technical round 8–12 YearsReactLighthousePerformance

What strategies would you use to improve Core Web Vitals (LCP, FID/INP, CLS) in a React application?

↑ 71 upvotes · 49 engineers asked this · Full Stack Developer
Accenture Hard Technical round 8–12 YearsReactJavaScriptPerformance

A component renders hundreds of items and users experience UI lag. How would you investigate and optimize the rendering performance?

↑ 63 upvotes · 44 engineers asked this · Full Stack Developer

PayU (10)

PayU Medium Technical round 2–5 YearsInterview ExperienceJavaScriptReact

Implement a debounce function from scratch in JavaScript. Then explain where you would use debounce vs throttle in a payment checkout flow — for example on a search input, a "Pay Now" button, and a scroll event handler.

↑ 88 upvotes · 62 engineers asked this · Full Stack Developer
PayU Medium Technical round 2–5 YearsInterview ExperienceReactJavaScript

Explain the reconciliation algorithm in React. How does React decide which DOM nodes to update when state changes? What is the role of the key prop and what happens when you use an array index as a key versus a stable unique ID?

↑ 96 upvotes · 71 engineers asked this · Full Stack Developer
PayU Medium Technical round 2–5 YearsInterview ExperienceReactJavaScript

Build a custom useFetch hook in React that accepts a URL, returns { data, loading, error }, handles component unmount (cleanup), and prevents state updates on an unmounted component. Show the complete implementation.

↑ 82 upvotes · 59 engineers asked this · Full Stack Developer
PayU Medium Technical round 2–5 YearsInterview ExperienceReactJavaScript

Implement a reusable PaymentForm component in React with fields for card number, expiry, and CVV. Add real-time validation using controlled components: card number must be 16 digits, expiry must be a future month, CVV 3–4 digits. No external libraries.

↑ 74 upvotes · 53 engineers asked this · Full Stack Developer
PayU Medium Technical round 2–5 YearsInterview ExperienceReactJavaScript

You need to implement optimistic UI for a "Add to Cart" button in a React e-commerce app. When the user clicks, the UI should update immediately, but revert if the API call fails. How would you implement this pattern without any state management library?

↑ 79 upvotes · 55 engineers asked this · Full Stack Developer
PayU Hard System Design round 2–5 YearsInterview ExperienceJavaScriptReactSecurity

Design the frontend architecture for a PayU checkout SDK that can be embedded in any merchant website as a script tag. It must render a payment form in an iframe, handle cross-origin communication, support multiple payment methods (card, UPI, netbanking), and work across React, Vue, and plain HTML merchant sites.

↑ 81 upvotes · 57 engineers asked this · Full Stack Developer
PayU Hard System Design round 2–5 YearsInterview ExperienceReactJavaScript

You are building a multi-step payment flow: Cart → Address → Payment Method → OTP → Confirmation. Each step has its own data, validation, and API calls. How would you architect state management for this flow in React without Redux? Discuss trade-offs.

↑ 85 upvotes · 61 engineers asked this · Full Stack Developer
PayU Hard Technical round 2–5 YearsInterview ExperienceReactJavaScript

Design and implement a recursive category tree component in React for a merchant product catalogue. The tree can be N levels deep, each node can be expanded/collapsed independently, and the selected path must be highlighted. Clicking a leaf node should emit the full path (e.g. "Electronics > Phones > Android"). Optimise to avoid re-rendering siblings when one node is toggled.

↑ 76 upvotes · 54 engineers asked this · Full Stack Developer
PayU Hard Technical round 2–5 YearsInterview ExperienceJavaScriptReactPerformance

A merchant reports that their checkout page built with your SDK scores 38 on Google Lighthouse. Walk through your systematic debugging process: which Core Web Vitals are likely failing, what tools you would use, and give five concrete optimisations specific to a payment checkout flow.

↑ 79 upvotes · 56 engineers asked this · Full Stack Developer
PayU Hard System Design round 2–5 YearsInterview ExperienceJavaScriptReactSystem Design

PayU wants to run A/B tests on the checkout button colour and payment method ordering to improve conversion rates. As the frontend engineer, how would you design the experimentation infrastructure: flag evaluation, consistent user bucketing, avoiding layout shift between variants, and measuring the right success metrics?

↑ 71 upvotes · 49 engineers asked this · Full Stack Developer

Airbnb (2)

Airbnb Hard Scenario round 5–8 YearsReactJavaScript

A React dashboard with 20 charts re-renders every time any filter changes, causing a 3-second lag. How do you optimize it?

↑ 116 upvotes · 91 engineers asked this · Full Stack Developer
Airbnb Medium Technical round 2-5 yearsReactJavaScript

A multi-step booking form (dates → guests → payment) loses all user input if they navigate back a step or refresh the page. How would you fix this without a backend round-trip on every keystroke?

↑ 27 upvotes · 18 engineers asked this · Senior SDE

Shopify (1)

Shopify Hard Scenario round 5–8 YearsReactJavaScriptNext.js

Your React app initial load time is 8 seconds. Users complain it is too slow. Walk me through your optimization strategy.

↑ 124 upvotes · 97 engineers asked this · Full Stack Developer

Microsoft (1)

Microsoft Hard Technical round 4–7 YearsReactJavaScriptNext.js

What is React 19 use() hook and how does it change async data fetching compared to useEffect?

↑ 98 upvotes · 77 engineers asked this · Full Stack Developer

Google (2)

Google Medium Scenario round 3–6 YearsReactJavaScript

A list of 50,000 items renders in a React component. Users scroll and experience jank. How do you fix it without pagination?

↑ 109 upvotes · 86 engineers asked this · Full Stack Developer
Google Medium Technical round 3-6 yearsReactJavaScript

Explain the difference between reconciliation and the commit phase in React. Why can render be interrupted in Concurrent Mode but commit cannot?

↑ 38 upvotes · 15 engineers asked this · Senior SDE

Atlassian (1)

Atlassian Medium Technical round 2-5 yearsJavaScriptReact

A drag-and-drop board with 500+ cards becomes laggy while dragging. What specific JavaScript/DOM techniques would you use to keep the drag interaction smooth?

↑ 22 upvotes · 9 engineers asked this · Senior SDE

Adobe (1)

Adobe Hard Technical round 3-7 yearsReactJavaScript

You're building a browser-based image editor with layers, filters, and undo/redo. Would you manage canvas rendering state inside React state, or outside it? Justify your choice.

↑ 25 upvotes · 8 engineers asked this · Senior SDE

Wipro (5)

Wipro Easy Technical round 1-3 yearsReactJavaScript

What is the difference between useState and useRef in React? Give an example where using the wrong one would cause a bug.

↑ 22 upvotes · 14 engineers asked this · Developer
Wipro Easy Technical round 0-2 yearsReact

Explain the difference between props and state in React with a simple example of each.

↑ 18 upvotes · 11 engineers asked this · Developer
Wipro Medium Technical round 1-4 yearsReactJavaScript

What is a controlled component in React? Rewrite an uncontrolled input (using a ref) into a controlled one and explain the trade-off.

↑ 25 upvotes · 17 engineers asked this · Developer
Wipro Medium Technical round 1-4 yearsReact

How does useEffect replace the class component lifecycle methods componentDidMount, componentDidUpdate, and componentWillUnmount?

↑ 21 upvotes · 13 engineers asked this · Developer
Wipro Medium Technical round 2-4 yearsReact

Your React app has 5 sibling components that all need access to the logged-in user's name. Would you use prop drilling, Context, or a state management library? Justify your choice.

↑ 19 upvotes · 10 engineers asked this · Developer

Practice these questions with AI feedback

Get instant grading on your answers, identify your weak areas, and generate a personalised 14-day study plan — all free.

Build my study plan →

React questions at each company

Accenture React PayU React Wipro React

Frequently asked questions

Explain how React's virtual DOM diffing algorithm (reconciliation) works. Why is it O(n) instead of O(n3)? What are the assumptions it makes and when do those break down (causing performance issues)?
Explain how React's virtual DOM diffing algorithm (reconciliation) works. Why is it O(n) instead of O(n3)? What are the assumptions it makes and when do those break down (causing performance issues)?
Explain Paytm's mini-app platform architecture. Third-party developers build apps that run inside the Paytm super-app. How do you sandbox them (security), manage their lifecycle, share user identity safely (OAuth), and handle payments on their behalf?
Explain Paytm's mini-app platform architecture. Third-party developers build apps that run inside the Paytm super-app. How do you sandbox them (security), manage their lifecycle, share user identity safely (OAuth), and handle payments on their behalf?
What is the difference between async and defer attributes in JavaScript? When would you use each one?
What is the difference between async and defer attributes in JavaScript? When would you use each one?
What is Critical CSS, and how does it improve page load performance in React applications?
What is Critical CSS, and how does it improve page load performance in React applications?
What techniques can be used to optimize images in React or Next.js applications for better performance?
What techniques can be used to optimize images in React or Next.js applications for better performance?