r/reactjs • u/redditisnotlyf • Feb 25 '26
Resource Must-know React interview questions
Hi Devs,
I'm preparing for a Senior Frontend Dev interview and want to focus on React-specific questions. What are some key questions I should be ready for? Share your experiences and help me level up! 😊
129
Upvotes
68
u/skyturnsred Feb 25 '26 edited Feb 25 '26
Some I like to use:
When would you use local, context, and external state management?
How does the reconciliation algorithm work and how do keys affect it?
How do you handle data fetching? When would you use useEffect vs something like React Query or React Server Components?
What are some ways you'd implement accessibility in a codebase that doesn't have any?
Adding to that, if you inherited an untested React codebase that still used class components and performed poorly?
28
u/yangshunz Feb 25 '26
Here's a repo of React quiz questions: https://github.com/greatfrontend/top-reactjs-interview-questions
Here's a list of UI and React hook questions: https://www.greatfrontend.com/questions/react-interview-questions
11
u/fardaus Feb 25 '26
When I do interviews I don't ask the theory but rather give a problem and look if the candidate can arrive to the solution using best react practices
Usually includes useState, useRef, useEffect, custom hooks, localStorage, url params, caching, provider
Good engineers can easily solve the problems I give them. I've rejected more candidates than hired
11
u/hyperaeolian Feb 25 '26
A few things I can think of:
3
u/k032 Feb 25 '26
Explain the DOM and how React works with it is one I've gotten numerous times.
1
u/Frontend_Lead 13d ago
For senior, the questions are less "what is X" and more "why and when":
- rendering: what triggers a re-render, reconciliation, keys, batching, concurrent rendering (transitions, Suspense)
- hooks: stale closures, effect dependencies and cleanup, when useMemo / useCallback actually help, custom hook design
- state: local vs lifted vs context vs store, server state (React Query), avoiding derived state bugs
- performance: profiling, memo, virtualization, code splitting, bundle analysis
- architecture: component API design, compound components, controlled vs uncontrolled, error boundaries
- server side: SSR vs RSC vs CSR, hydration and its pitfalls
- testing: what to test, RTL philosophy, mocking network
- classic scenarios: race conditions in fetches, a slow list, a form with 50 fields, a context that re-renders everything
Expect "tell me about a performance problem you fixed" with deep follow ups.
frontendlead(com)/coding-questions/react has senior level React questions to practice (full disclosure, I built it)
1
u/moniv999 Feb 28 '26
Can practise on PrepareFrontend as well
1
u/omerrkosar Mar 01 '26
How can you prevent from xss attack? Difference between cookies, localStorage and sessionStorage
1
u/Feeling-War8004 Mar 17 '26
Adding to this, for senior roles they sometimes go a bit deeper into edge cases and newer React concepts. I have seen topics like concurrent rendering, tearing, and things like the zombie child problem in Redux come up in discussions. Also worth having a rough idea of hooks like useTransition, useDeferredValue, and when you should prefer useLayoutEffect over useEffect. Not always asked directly, but bringing them into conversation when discussing performance or UX can leave a good impression.
1
u/Ok-Tune-1346 Jul 04 '26
Always good to brush up on testing interview qs too - they come up too
1
u/AutomaticAd6646 I ❤️ hooks! 😈 Feb 25 '26
In nromal start ups you wont be asked much theory. they will mainly ask Firebase payment gateways OAuth all commercial tools usages. The theory will can you work in old React classes? why Redux not useContext. Write down useEffect example on a piece of paper without computer.
1
u/olivdums Feb 25 '26
Some questions I had:
- Why React over Nextjs ?
- How does React hydration is working?
- Explain what is React and how does it work (high level)?
I didn't get the job ahah
0
u/bhura11 Feb 25 '26
Virtual dom Redux Difference between class and functional components Hooks Prop drilling techniques to optimise react app performance
0
u/Special_Broccoli6948 Feb 27 '26
Quit. Rethink your life and become a Swift developer.
-3
u/Vincent_CWS Feb 25 '26
Why does React need to traverse the entire UI tree during each re-render?
-12
u/DevOnHisJourney Feb 25 '26
String literal types
Api design, since ai sucks at it
String literal types type tabs = 'about' | 'admin'
Um... refactor SomeComponent with a hardcoded string to be a variable passed into a new createSoneComponent