What is the difference between client state and server state?

Heisenbug logo
TheHeisenBug

Search

Search across questions, learning content, and hands-on projects

Ace Your Next Tech Interview

5,986+ interview questions across 87 technologies — with expert answers, advanced search, AI-powered assistance, personal highlights, structured learning paths, and hands-on practice projects.

5,986+Questions & Answers
87Technologies
AdvancedSearch
Built-inAsk AI
PersonalHighlights
StructuredLearning Paths
Hands-onPractice Projects

Lifetime Access

One-time payment. No subscriptions. Unlock everything, forever.

$19.90USD

or R$49.90 BRL

FeatureFreePremium
Question titlesAllAll
Answers per topicTop 5All
Learning chaptersFirst 5All
Practice projectsFirst 3All
Highlights
Ask AI
Read tracking
Search

React Interview Questions

  1. [JUNIOR] What is React and why is it used?
  2. [MID] What is the virtual DOM and how does React use it to render the UI?
  3. [MID] What are the differences between controlled and uncontrolled components?
  4. [JUNIOR] What is JSX and how is it converted into JavaScript?
  5. [JUNIOR] What is a React component?
  6. [MID] Explain the difference between state and props.
  7. [MID] What are React hooks? Name a few commonly used ones.
  8. [MID] What are keys in React and why are they important?
  9. [SENIOR] How do you prevent unnecessary re-renders in React?
  10. [SENIOR] What techniques would you use to optimize a slow React application?
  11. [JUNIOR] What are the differences between functional and class components?
  12. [JUNIOR] What are props in React?
  13. [JUNIOR] What are fragments in React?
  14. [MID] What is the useEffect hook and when would you use it?
  15. [MID] What is prop drilling in React?
  16. [MID] How does the useState hook work?
  17. [MID] What are the rules of hooks and why are they important?
  18. [MID] What is the difference between useMemo and useCallback?
  19. [MID] How do you pass data between React components?
  20. [MID] What is React Router and why is it used?
  21. [MID] What is the Context API in React?
  22. [SENIOR] How does React.memo help improve performance?
  23. [SENIOR] What is code splitting and lazy loading in React?
  24. [SENIOR] What is reconciliation in React and how does it work?
  25. [JUNIOR] What are the advantages of using React?
  26. [JUNIOR] What is conditional rendering in React?
  27. [JUNIOR] How do you render a list of items in React?
  28. [MID] What is the useContext hook and when should you use it?
  29. [MID] What is the useRef hook and what are its common use cases?
  30. [MID] What are custom hooks in React and how do you create one?
  31. [MID] What are Higher Order Components in React?
  32. [MID] What are error boundaries in React?
  33. [MID] What is the difference between re-render and re-mount in React?
  34. [MID] What is a pure component in React?
  35. [SENIOR] When should you use Redux over the Context API?
  36. [SENIOR] How do you properly cancel async requests inside useEffect?
  37. [SENIOR] What are stale closures in hooks and how do you fix them?
  38. [SENIOR] Why does React batch state updates and what changed in React 18?
  39. [SENIOR] What is the difference between useEffect and useLayoutEffect?
  40. [JUNIOR] What are the limitations of React?
  41. [JUNIOR] What are the different ways to style a React component?
  42. [MID] What are the different phases of the component lifecycle?
  43. [MID] What is Strict Mode in React?
  44. [MID] What happens if you attempt to update the state directly in React?
  45. [MID] What is the useReducer hook and when is it preferred over useState?
  46. [MID] How do you handle multiple input fields in a single form in React?
  47. [SENIOR] Why does using array index as a key cause UI bugs?
  48. [SENIOR] What causes an infinite re-render loop and how do you debug it?
  49. [SENIOR] Why does React.memo sometimes not prevent re-renders?
  50. [SENIOR] Why do inline functions or objects in JSX hurt performance?
  51. [SENIOR] What are some performance tips when rendering large lists in React?
  52. [SENIOR] What is the difference between client state and server state?
  53. [SENIOR] Explain the Flux architecture and how it relates to Redux?
  54. [EXPERT] Why can useEffect with an empty dependency array still run twice in development?
  55. [JUNIOR] How are forms handled in React compared to plain HTML?
  56. [MID] What is event bubbling and how can you stop it in React?
  57. [MID] What is the difference between an anchor tag and Link in React Router?
  58. [SENIOR] How do you implement protected routes in React Router?
  59. [SENIOR] How do you implement route-level code splitting with lazy loading?
  60. [SENIOR] How do you handle persistent state in React apps?
  61. [SENIOR] How do you prevent navigation when a form has unsaved changes?
  62. [EXPERT] Why does console.log show the old state value right after calling setState?
  63. [EXPERT] Why do components re-render even when props appear unchanged?
  64. [EXPERT] How does React Fiber architecture work internally?
  65. [SENIOR] What is the difference between BrowserRouter and HashRouter?
  66. [SENIOR] How do loaders and actions work in React Router data routers?
  67. [EXPERT] What happens when you update state based on previous state incorrectly?
  68. [EXPERT] Why does a child component lose input focus after typing and how do you fix it?
  69. [EXPERT] What is useImperativeHandle and when would you use it?
  70. [EXPERT] How does React handle concurrent rendering and what are its implications?
  71. [EXPERT] What is the difference between useEffect, useLayoutEffect, and useInsertionEffect?
  72. [EXPERT] What is the difference between derived state and computed state in React?
  73. [EXPERT] What is the difference between the Shadow DOM and the virtual DOM?