200 React interview questions and answers

React interview questions on components, state, rendering, reconciliation, context, performance, React 19 features and the patterns interviewers ask about most.

Easy100 easy React questions

  1. 1What is React?
  2. 2Why use React?
  3. 3What are components?
  4. 4Difference between Functional and Class components?
  5. 5What is JSX?
  6. 7What is the Virtual DOM?
  7. 10What is a key in React?
  8. 11Why are keys important?
  9. 12What are props?
  10. 13Difference between props and state?
  11. 14What is state?
  12. 15How to update state?
  13. 17What is setState()?
  14. 18What is 'lifting state up'?
  15. 19What is prop drilling?
  16. 20What is the component lifecycle?
  17. 22What is the render method?
  18. 23What is a Fragment?
  19. 24What is Strict Mode?
  20. 25What is a controlled component?
  21. 26What is an uncontrolled component?
  22. 28How to handle events in React?
  23. 30Difference between default and named exports?
  24. 31What is conditional rendering?
  25. 32What is list rendering?
  26. 33What is the children prop?
  27. 34What are default props?
  28. 35What are PropTypes?
  29. 36What is React DevTools?
  30. 37What is Create React App (CRA)?
  31. 38What is Vite?
  32. 39What is component composition?
  33. 40What is a reusable component?
  34. 41What are React Hooks?
  35. 42Why were Hooks introduced?
  36. 43What is useState?
  37. 44Can we use multiple state variables?
  38. 45What is useEffect?
  39. 46Equivalent of lifecycle methods in useEffect?
  40. 47What is the dependency array in useEffect?
  41. 48What is the cleanup function in useEffect?
  42. 49What is useContext?
  43. 50What is useRef?
  44. 51Difference between useRef and state?
  45. 54Difference: useMemo vs useCallback?
  46. 57What is a custom hook?
  47. 58What are the Rules of Hooks?
  48. 65What is useId?
  49. 72What is cleanup in hooks?
  50. 73What is a side effect?
  51. 76Why hooks cannot be conditional?
  52. 77Custom hook example?
  53. 80What is lazy initialization in useState?
  54. 81What is a state updater function?
  55. 82What is a functional update?
  56. 84What is a re-render?
  57. 85What triggers a re-render?
  58. 95What is lazy loading?
  59. 96What is code splitting?
  60. 98What is React.lazy?
  61. 100What is tree shaking?
  62. 102Smart vs Dumb components?
  63. 103Container vs Presentational?
  64. 104What is Atomic Design?
  65. 106What is global state?
  66. 107What is Context API?
  67. 109What is Redux?
  68. 111What is a Store?
  69. 112What is a Reducer?
  70. 113What is an Action?
  71. 114What is Dispatch?
  72. 118What is Zustand?
  73. 121What is React Router?
  74. 122What is dynamic routing?
  75. 123What is nested routing?
  76. 126What is navigation?
  77. 127What are params?
  78. 128What is a query string?
  79. 129What is useNavigate?
  80. 130What is useParams?
  81. 131Controlled vs Uncontrolled Forms?
  82. 133What is Formik?
  83. 134What is React Hook Form?
  84. 137Axios vs Fetch?
  85. 139Loading states?
  86. 142What is CSR (Client-Side Rendering)?
  87. 145What is Next.js?
  88. 146Why use Next.js?
  89. 148What are Client Components?
  90. 153What is Sanitization?
  91. 156What is Testing?
  92. 157What is Jest?
  93. 158What is React Testing Library?
  94. 159Unit vs Integration testing?
  95. 161How to debug a React app?
  96. 169Custom Hooks Pattern?
  97. 172Key issues in list?
  98. 173State not updating immediately?
  99. 181Build a counter app
  100. 189Accordion component

Medium91 medium React questions

  1. 6How does JSX work under the hood?
  2. 8How does React update the DOM?
  3. 9What is reconciliation?
  4. 16Is state update asynchronous?
  5. 21What are the common lifecycle methods in class components?
  6. 27How to handle forms in React?
  7. 29What is a Synthetic Event?
  8. 52What is useMemo?
  9. 53What is useCallback?
  10. 55When to use memoization?
  11. 56What is React.memo?
  12. 59What is useReducer?
  13. 60useReducer vs useState?
  14. 61What is useLayoutEffect?
  15. 62Difference: useEffect vs useLayoutEffect?
  16. 64What is forwardRef?
  17. 66What is useTransition?
  18. 67What is useDeferredValue?
  19. 68What is batching?
  20. 69What is a stale closure in hooks?
  21. 70How to avoid infinite loops in useEffect?
  22. 71What is a dependency warning?
  23. 74What is the render cycle?
  24. 75What is hook call order?
  25. 78How to share logic via hooks?
  26. 79Hook performance optimization?
  27. 83What is referential equality?
  28. 86What is batching in React 18?
  29. 87What is Strict Mode double render?
  30. 90What is a transition update?
  31. 91What is React performance optimization?
  32. 92What causes unnecessary re-renders?
  33. 93How to prevent re-renders?
  34. 94What is memoization in React?
  35. 97What is Suspense?
  36. 99Bundle size optimization?
  37. 101Folder structure best practice?
  38. 105What is scalable architecture?
  39. 108Context vs Redux?
  40. 110What is Redux Toolkit?
  41. 115What is Middleware in Redux?
  42. 116What is Redux Thunk?
  43. 119What is Recoil?
  44. 120When to use which state tool?
  45. 124What are protected routes?
  46. 125What are lazy routes?
  47. 132Form validation?
  48. 135Performance in forms?
  49. 136How to fetch data?
  50. 138Error handling in API?
  51. 140Caching strategies?
  52. 141What is SSR (Server-Side Rendering)?
  53. 143What is SSG (Static Site Generation)?
  54. 144What is Hydration?
  55. 147What are Server Components?
  56. 149What is Edge Rendering?
  57. 150What is Streaming?
  58. 151XSS in React?
  59. 152How React prevents XSS?
  60. 154What is CORS in React?
  61. 155Auth in React?
  62. 160Mocking APIs in tests?
  63. 162React DevTools Profiler?
  64. 163Why is a component re-rendering?
  65. 164How to trace performance issues?
  66. 165What are Error Boundaries?
  67. 166What is HOC (Higher-Order Component)?
  68. 167What are Render Props?
  69. 170Controlled Pattern?
  70. 171How to fix infinite re-render?
  71. 174Async bugs in React?
  72. 175What are memory leaks?
  73. 176Race conditions in fetching?
  74. 177Stale data issues?
  75. 178Debounce in React?
  76. 179Throttle in React?
  77. 180Cleanup issues?
  78. 182Build a todo app
  79. 183Search with debounce
  80. 185Pagination implementation
  81. 186Form validation logic
  82. 187Modal component
  83. 188Tabs component
  84. 190Dropdown menu
  85. 191Dark mode toggle
  86. 192API fetch + loader
  87. 193Error Boundary implementation
  88. 194Custom hook (useFetch)
  89. 195useLocalStorage hook
  90. 197Drag and drop basics
  91. 199Role-based routing

Hard9 hard React questions

  1. 63What is useImperativeHandle?
  2. 88What is effect tearing?
  3. 89What is concurrent rendering?
  4. 117What is Redux Saga?
  5. 168What are Compound Components?
  6. 184Infinite scroll logic
  7. 196Optimized list rendering
  8. 198Authentication flow
  9. 200Mini Dashboard app