Back to Prep Library
Category Blueprint
React.js Interview Library
Hooks, rendering & state management
Questions99
Views64.2k
Upvotes4.2k
Filter
Question Catalog
(99 visible)React.js· Phone Screen
What are React synthetic events?
1.2k50
easy
React.js· Frontend
What are React Hooks? Name a few common ones.
1.1k36
easy
React.js· Frontend
What is `PropTypes` and when would you use it?
1.1k79
easy
React.js· Frontend
How do you handle side effects in functional components?
97073
easy
React.js· Frontend
What is the role of `react-dom`?
94969
easy
React.js· Frontend
What are React Developer Tools and how do you use them?
8932
easy
React.js· Frontend
What is the purpose of the `key` prop when rendering lists in React?
89035
easy
React.js· Frontend
Explain the concept of 'lifting state up' in React.
8132
easy
React.js· Frontend
What are the advantages of using React over plain JavaScript?
80863
easy
React.js· Phone Screen
How do you pass data between components in React?
80256
easy
React.js· Frontend
Explain the concept of 'unidirectional data flow' in React.
79280
easy
React.js· Phone Screen
What is JSX?
70543
easy
React.js· Phone Screen
What is the difference between element and component in React?
65670
easy
React.js· Frontend
What are fragments in React?
48528
easy
React.js· Frontend
What is the Virtual DOM in React?
40423
easy
React.js· Phone Screen
What is React and its main features?
3940
easy
React.js· Frontend
How do you debug React applications?
35839
easy
React.js· Frontend
What is the purpose of `React.StrictMode`?
31837
easy
React.js· Frontend
How do you manage component-level state without `useState` or `useReducer`?
28074
easy
React.js· Frontend
What is the difference between state and props?
19632
easy
React.js· Phone Screen
What are React Components?
13780
easy
React.js· Frontend
What is the role of a bundler like Webpack in a React project?
13544
easy
React.js· Frontend
What is `create-react-app` and when would you use it?
12173
easy
React.js· Phone Screen
What is the purpose of the cleanup function in useEffect?
5168
easy
React.js· Frontend
What are React's design principles?
1.2k61
medium
React.js· Frontend
What is the difference between `useState` and `useReducer`?
1.2k31
medium
React.js· Frontend
What is the purpose of the `deps` array in `useEffect` and `useCallback`?
1.1k12
medium
React.js· Frontend
Describe the `useRef` hook and its typical use cases.
1.1k28
medium
React.js· Frontend
How does React handle security concerns like XSS?
1.1k68
medium
React.js· Low-Level Design
How would you structure a large React application?
1.1k24
medium
React.js· Frontend
What are render props and how do they work?
1.0k13
medium
React.js· Frontend
Explain the concept of reconciliation in React.
1.0k61
medium
React.js· Frontend
Describe the React component lifecycle.
1.0k64
medium
React.js· Frontend
Explain the concept of 'composition' in React components.
96944
medium
React.js· Frontend
How does React handle events?
95837
medium
React.js· Frontend
How do you handle asynchronous operations in React functional components?
93065
medium
React.js· Frontend
What is the Context API in React and when would you use it?
91328
medium
React.js· Frontend
How does React's Batching work?
90571
medium
React.js· Frontend
How do you test React components?
88011
medium
React.js· Frontend
What are React custom hooks and when should you use them?
82052
medium
React.js· Frontend
How do you fetch data in React?
81474
medium
React.js· Frontend
What is the difference between controlled and uncontrolled components?
77863
medium
React.js· Frontend
What is the difference between useMemo and useCallback?
7505
medium
React.js· Frontend
How do you handle routing in React applications?
74416
medium
React.js· Frontend
How do you handle memory leaks in React?
72432
medium
React.js· Frontend
How do you prevent unnecessary re-renders in functional components?
70668
medium
React.js· Frontend
How do you handle forms in React?
6407
medium
React.js· Frontend
When would you choose a class component over a functional component with hooks?
61025
medium
React.js· Frontend
What is 'prop drilling' and how can it be avoided?
5522
medium
React.js· Frontend
How do you interact with external APIs in React?
55212
medium
React.js· Frontend
How do you manage global state in a large React application?
53918
medium
React.js· Frontend
Describe the benefits of using TypeScript with React.
46951
medium
React.js· Frontend
What are Higher-Order Components (HOCs) in React?
38755
medium
React.js· Frontend
Explain the purpose of `useEffect`.
36468
medium
React.js· Frontend
What are Error Boundaries in React?
26758
medium
React.js· Frontend
How do you optimize performance in a React application?
22821
medium
React.js· Frontend
What is `React.memo` and when would you use it?
9437
medium
React.js· Frontend
Explain React Suspense and its use cases.
6659
medium
React.js· Frontend
What is the difference between shadow DOM and virtual DOM?
4332
medium
React.js· Frontend
What causes stale closures in React hooks, and how do you fix them correctly?
1.2k46
hard
React.js· Frontend
What are Actions in React 19, and how do they change form handling?
1.1k47
hard
React.js· Frontend
What is `useFormStatus` in React 19, and why does it exist?
1.1k8
hard
React.js· Frontend
What are Effect Events (`useEffectEvent`) and what problem do they solve?
99322
hard
React.js· Frontend
What does the `useActionState` hook do in React 19?
94627
hard
React.js· Frontend
What problem does `useSyncExternalStore` solve?
93873
hard
React.js· Frontend
How do you optimize React component rendering?
92965
hard
React.js· Frontend
How do you avoid re-renders with composition instead of memoization?
92178
hard
React.js· Frontend
What is `useDeferredValue` and how does it differ from debouncing?
91311
hard
React.js· Frontend
Why does React 18 StrictMode double-invoke your components and effects?
90813
hard
React.js· Frontend
How does streaming SSR with selective hydration work?
89456
hard
React.js· Frontend
What are Portals in React and when would you use them?
88846
hard
React.js· Frontend
How can the `key` prop be used to deliberately reset component state?
87714
hard
React.js· Frontend
How do Suspense data-fetching waterfalls happen, and how do you avoid them?
81934
hard
React.js· Frontend
What is server-side rendering (SSR) and when would you use it with React?
76775
hard
React.js· Frontend
React Server Components vs SSR — what is the real difference?
71049
hard
React.js· Frontend
How does `useOptimistic` enable optimistic UI in React 19?
70458
hard
React.js· Frontend
When and why do you use `forwardRef` with `useImperativeHandle`?
66243
hard
React.js· Frontend
What underlying mechanism makes the Rules of Hooks mandatory?
65949
hard
React.js· Frontend
Why does updating Context re-render all its consumers, and how do you fix it?
63611
hard
React.js· Frontend
Why must React state updates be immutable?
60140
hard
React.js· Frontend
Compare render-as-you-fetch, fetch-on-render, and fetch-then-render.
58363
hard
React.js· Frontend
What does the `use()` hook do, and why is it special?
52842
hard
React.js· Frontend
What do `startTransition` and `useTransition` actually do under the hood?
52024
hard
React.js· Frontend
When would you use `useLayoutEffect` instead of `useEffect`?
51416
hard
React.js· Frontend
What is "tearing" in concurrent React?
43936
hard
React.js· Frontend
When does `React.memo` do nothing — or actually hurt performance?
40434
hard
React.js· Frontend
What are the resource preloading APIs in React 19 (`preload`, `preinit`, etc.)?
33574
hard
React.js· System Design
What is hydration in React?
32270
hard
React.js· Frontend
How does React 19 handle document metadata like `<title>` and `<meta>`?
3110
hard
React.js· Frontend
What causes hydration mismatches, and how do you handle them?
30561
hard
React.js· Frontend
What are Server Actions and the `"use server"` directive in React 19?
29666
hard
React.js· Frontend
How do you safely handle async work and race conditions inside effects?
28413
hard
React.js· Frontend
How do you keep the UI responsive during an expensive update without a Suspense fallback flash?
26919
hard
React.js· System Design
What is the difference between client-side rendering (CSR) and server-side rendering (SSR) in React?
24112
hard
React.js· Frontend
How did ref handling change in React 19 (ref as a prop, forwardRef, ref cleanup)?
17672
hard
React.js· Frontend
What can and can't an Error Boundary catch?
14868
hard
React.js· System Design
How does React Fiber work?
13737
hard
React.js· Frontend
How does automatic batching work in React 18, and how do you opt out?
1140
hard
React.js· Frontend
What changed with Context in React 19 (`<Context>` as a provider)?
6269
hard
Difficulty Distribution
Easy24 (24%)
Medium35 (35%)
Hard40 (40%)
Tested Topics
#react#performance#hooks#react-19#architecture#state management#dom#state
Study Guide
Focus on React 19 updates, Server Components/Actions lifecycle, hooks internals, Concurrent Mode rendering, and performance tuning (memo, transitions).