Senior React Developer Interview Questions & Answers
40 questions for Senior React Developer interviews — 13 medium, 27 hard.
About the Senior React Developer role
A senior React developer owns the frontend of a product area: designing component architecture and state flow, reviewing code, setting testing standards and solving performance problems. They mentor juniors, work with product and backend teams on API contracts and estimates, and make technology choices such as when to adopt Next.js, the React Compiler or a new state library. Typical experience is four to seven years.
What does the 'use client' directive do?
Show answer
How do you fetch data in a Next.js App Router page?
Show answer
A blog feature must render HTML content that comes from a CMS. Why is dangerouslySetInnerHTML risky and how do you use it safely?
Show answer
What is middleware, now called proxy, in Next.js?
Show answer
Typing in a search box feels laggy because a big product list is filtered on every keystroke. How do you fix it?
Show answer
How do you track errors that happen in production React apps?
Show answer
Why normalise state in Redux and what does createEntityAdapter do?
Show answer
You inherit an old Redux codebase with connect, hand-written action types and switch reducers. How would you modernise it?
Show answer
A test in CI fails randomly about one time in ten. How do you handle a flaky test?
Show answer
How did you bring better testing practices to a team that had very few tests?
Show answer
What are React Server Components?
Show answer
How do you test a component that depends on Redux and React Router?
Show answer
Field data shows poor INP on the 'Add to cart' button of a product page. How do you improve it?
Show answer
What resource preloading APIs did React 19 add?
Show answer
In a Next.js app you see a hydration mismatch error. How do you debug it?
Show answer
Your tests pass but print 'An update to Component inside a test was not wrapped in act(...)'. What does it mean and how do you fix it?
Show answer
Without using memo, what structural techniques reduce unnecessary re-renders?
Show answer
What are memoised selectors and why use createSelector?
Show answer
After a release, the Lighthouse performance score of the home page dropped from 90 to 60. How do you find and fix the cause?
Show answer
Describe how you led a large frontend migration.
Show answer
How do you add multiple languages to a React app?
Show answer
How does caching work in modern Next.js?
Show answer
How would you build and maintain a shared component library for several React apps?
Show answer
What are micro-frontends and when are they worth it?
Show answer
After adding an AuthContext at the root, profiling shows the whole app re-rendering every few seconds. What would you check?
Show answer
Explain the testing pyramid and the testing trophy. Which applies to frontend?
Show answer
Tell me about a time you improved the performance of an application.
Show answer
How would you implement an optimistic update with TanStack Query and roll back on failure?
Show answer
A new mid-sized dashboard project is starting. How would you decide between Context, Redux Toolkit and Zustand?
Show answer
What is the React Compiler?
Show answer
A teammate wraps every function in useCallback and every value in useMemo for performance. When should you not memoise, and what feedback would you give?
Show answer
After navigating between pages for a while, the app's memory keeps growing and it slows down. How do you investigate a memory leak?
Show answer
What is Redux middleware?
Show answer
An e-commerce site has one lakh product pages whose prices change a few times a day. Which rendering strategy would you choose in Next.js?
Show answer
When would you add end-to-end tests with Playwright or Cypress?
Show answer
You wrapped a row component in React.memo, but the profiler shows it still re-renders every time. The parent passes onClick={() => remove(id)}. Why?
Show answer
When would you use a Web Worker in a React application?
Show answer
How do you persist part of your state, like the cart, across page reloads?
Show answer
Tell me about a time you had to learn a new tool or library quickly.
Show answer
Frequently asked questions
What does a Senior React Developer do?
A senior React developer owns the frontend of a product area: designing component architecture and state flow, reviewing code, setting testing standards and solving performance problems. They mentor juniors, work with product and backend teams on API contracts and estimates, and make technology choices such as when to adopt Next.js, the React Compiler or a new state library. Typical experience is four to seven years.
Which skills are tested in a Senior React Developer interview?
Expect questions on Component architecture, Performance profiling, Testing strategy, Code review and mentoring, TypeScript at scale. Most rounds also ask you to explain a project and solve one practical problem live.
How do I prepare for a Senior React Developer interview?
Revise Performance Optimization, Testing and Debugging, State Management, Next.js and Advanced React first using the topic sheets, practise the questions on this page aloud, then do one full mock interview to practise timing.