1 What is React?
2 What are the major features of React?
3 What is JSX?
4 What is the difference between an Element and a Component?
5 How to create components in React?
6 When to use a Class Component over a Function Component?
7 What are Pure Components?
8 What is state in React?
9 What are props in React?
10 What is the difference between state and props?
11 What is the difference between HTML and React event handling?
12 What are synthetic events in React?
13 What are inline conditional expressions?
14 What is "key" prop and what is the benefit of using it in arrays of elements?
15 What is Virtual DOM?
16 How Virtual DOM works?
17 What is the difference between Shadow DOM and Virtual DOM?
18 What is React Fiber?
19 What is the main goal of React Fiber?
20 What are controlled components?
21 What are uncontrolled components?
22 What is the difference between createElement and cloneElement?
23 What is Lifting State Up in React?
24 What are Higher-Order Components?
25 What is children prop?
26 How to write comments in React?
27 What is reconciliation?
28 Does the lazy function support named exports?
29 Why React uses `className` over `class` attribute?
30 What are fragments?
31 Why fragments are better than container divs?
32 What are portals in React?
33 What are stateless components?
34 What are stateful components?
35 How to apply validation on props in React?
36 What are the advantages of React?
37 What are the limitations of React?
38 What are the recommended ways for static type checking?
39 What is the use of `react-dom` package?
40 What is ReactDOMServer?
41 How to use innerHTML in React?
42 How to use styles in React?
43 How events are different in React?
44 What is the impact of indexes as keys?
45 How do you conditionally render components?
46 Why we need to be careful when spreading props on DOM elements?
47 How do you memoize a component?
48 How you implement Server Side Rendering or SSR?
49 How to enable production mode in React?
50 Do Hooks replace render props and higher order components?
51 What is a switching component?
52 What are React Mixins?
53 What are the Pointer Events supported in React?
54 Why should component names start with capital letter?
55 Are custom DOM attributes supported in React v16?
56 How to loop inside JSX?
57 How do you access props in attribute quotes?
58 What is React proptype array with shape?
59 How to conditionally apply class attributes?
60 What is the difference between React and ReactDOM?
61 Why ReactDOM is separated from React?
62 How to use React label element?
63 How to combine multiple inline style objects?
64 How to re-render the view when the browser is resized?
65 How to pretty print JSON with React?
66 Why can't you update props in React?
67 How to focus an input element on page load?
68 How can we find the version of React at runtime in the browser?
69 How to add Google Analytics for React Router?
70 How do you apply vendor prefixes to inline styles in React?
71 How to import and export components using React and ES6?
72 What are the exceptions on React component naming?
73 Is it possible to use async/await in plain React?
74 What are the common folder structures for React?
75 What are the popular packages for animation?
76 What is the benefit of styles modules?
77 What are the popular React-specific linters?
78 What is React Router?
79 How React Router is different from history library?
80 What are the `<Router>` components of React Router v6?
81 What is the purpose of `push()` and `replace()` methods of `history`?
82 How do you programmatically navigate using React Router v4?
83 How to get query parameters in React Router v4?
84 Why you get "Router may have only one child element" warning?
85 How to pass params to `history.push` method in React Router v4?
86 How to implement _default_ or _NotFound_ page?
87 How to get history on React Router v4?
88 How to perform automatic redirect after login?
89 What is React Intl?
90 What are the main features of React Intl?
91 What are the two ways of formatting in React Intl?
92 How to use `<FormattedMessage>` as placeholder using React Intl?
93 How to access current locale with React Intl?
94 How to format date using React Intl?
95 What is Shallow Renderer in React testing?
96 What is `TestRenderer` package in React?
97 What is the purpose of ReactTestUtils package?
98 What is Jest?
99 What are the advantages of Jest over Jasmine?
100 Give a simple example of Jest test case
101 What is flux?
102 What is Redux?
103 What are the core principles of Redux?
104 What are the downsides of Redux compared to Flux?
105 What is the difference between `mapStateToProps()` and `mapDispatchToProps()`?
106 Can I dispatch an action in reducer?
107 How to access Redux store outside a component?
108 What are the drawbacks of MVW pattern?
109 Are there any similarities between Redux and RxJS?
110 How to reset state in Redux?
111 What is the difference between React context and React Redux?
112 Why are Redux state functions called reducers?
113 How to make AJAX request in Redux?
114 Should I keep all component's state in Redux store?
115 What is the proper way to access Redux store?
116 What is the difference between component and container in React Redux?
117 What is the purpose of the constants in Redux?
118 What are the different ways to write `mapDispatchToProps()`?
119 What is the use of the `ownProps` parameter in `mapStateToProps()` and `mapDispatchToProps()`?
120 How to structure Redux top level directories?
121 What is redux-saga?
122 What is the mental model of redux-saga?
123 What are the differences between `call()` and `put()` in redux-saga?
124 What is Redux Thunk?
125 What are the differences between `redux-saga` and `redux-thunk`?
126 What is Redux DevTools?
127 What are the features of Redux DevTools?
128 What are Redux selectors and why use them?
129 What is Redux Form?
130 What are the main features of Redux Form?
131 How to add multiple middlewares to Redux?
132 How to set initial state in Redux?
133 How Relay is different from Redux?
134 What is an action in Redux?
135 What is the difference between React Native and React?
136 How to test React Native apps?
137 How to do logging in React Native?
138 How to debug your React Native?
139 What is reselect and how it works?
140 What is Flow?
141 What is the difference between Flow and PropTypes?
142 How to use Font Awesome icons in React?
143 What is React Dev Tools?
144 Why is DevTools not loading in Chrome for local files?
145 How to use Polymer in React?
146 What are the advantages of React over Vue.js?
147 What is the difference between React and Angular?
148 Why React tab is not showing up in DevTools?
149 What are Styled Components?
150 Give an example of Styled Components?
151 What is Relay?
152 What are the main features of Reselect library?
153 Can Redux only be used with React?
154 Do you need to have a particular build tool to use Redux?
155 How Redux Form `initialValues` get updated from state?
156 How React PropTypes allow different types for one prop?
157 Can I import an SVG file as react component?
158 What is render hijacking in react?
159 How to pass numbers to React component?
160 Do I need to keep all my state into Redux? Should I ever use react internal state?
161 What is the purpose of registerServiceWorker in React?
162 What is React memo function?
163 What is React lazy function?
164 How to prevent unnecessary updates using setState?
165 How do you render Array, Strings and Numbers in React 16 Version?
166 What are hooks?
167 What rules need to be followed for hooks?
168 How to ensure hooks followed the rules in your project?
169 What are the differences between Flux and Redux?
170 What are the benefits of React Router V4?
171 Can you describe about componentDidCatch lifecycle method signature?
172 In which scenarios do error boundaries not catch errors?
173 What is the behavior of uncaught errors in react 16?
174 What is the proper placement for error boundaries?
175 What is the benefit of component stack trace from error boundary?
176 What are default props?
177 What is the purpose of displayName class property?
178 What is the browser support for react applications?
179 What is code-splitting?
180 What are Keyed Fragments?
181 Does React support all HTML attributes?
182 When component props defaults to true?
183 What is NextJS and major features of it?
184 How do you pass an event handler to a component?
185 How to prevent a function from being called multiple times?
186 How JSX prevents Injection Attacks?
187 How do you update rendered elements?
188 How do you say that props are readonly?
189 What are the conditions to safely use the index as a key?
190 Should keys be globally unique?
191 What is the popular choice for form handling?
192 What are the advantages of formik over redux form library?
193 Why are you not required to use inheritance?
194 Can I use web components in react application?
195 What is dynamic import?
196 What are loadable components?
197 What is suspense component?
198 What is route based code splitting?
199 What is the purpose of default value in context?
200 What is diffing algorithm?
201 What are the rules covered by diffing algorithm?
202 When do you need to use refs?
203 Must prop be named as render for render props?
204 What are the problems of using render props with pure components?
205 What is windowing technique?
206 How do you print falsy values in JSX?
207 What is the typical use case of portals?
208 How do you set default value for uncontrolled component?
209 What is your favorite React stack?
210 What is the difference between Real DOM and Virtual DOM?
211 How to add Bootstrap to a react application?
212 Can you list down top websites or applications using react as front end framework?
213 Is it recommended to use CSS In JS technique in React?
214 Do I need to rewrite all my class components with hooks?
215 What is useEffect hook? How to fetch data with React Hooks?
216 Is Hooks cover all use cases for classes?
217 What is the stable release for hooks support?
218 Why do we use array destructuring (square brackets notation) in `useState`?
219 What are the sources used for introducing hooks?
220 How do you access imperative API of web components?
221 What is formik?
222 What are typical middleware choices for handling asynchronous calls in Redux?
223 Do browsers understand JSX code?
224 Describe about data flow in react?
225 What is MobX?
226 What are the differences between Redux and MobX?
227 Should I learn ES6 before learning ReactJS?
228 What is Concurrent Rendering?
229 What is the difference between async mode and concurrent mode?
230 Can I use javascript urls in react16.9?
231 What is the purpose of eslint plugin for hooks?
232 What is the difference between Imperative and Declarative in React?
233 What are the benefits of using TypeScript with ReactJS?
234 How do you make sure that user remains authenticated on page refresh while using Context API State Management?
235 What are the benefits of new JSX transform?
236 How is the new JSX transform different from old transform??
237 What are React Server components?
238 What is prop drilling?
239 What is the difference between useState and useRef hook?
240 What is a wrapper component?
241 What are the differences between useEffect and useLayoutEffect hooks?
242 What are the differences between Functional and Class Components?
243 What is strict mode in React?
244 What is the benefit of strict mode?
245 Why does strict mode render twice in React?
246 What are the rules of JSX?
247 What is the reason behind multiple JSX tags to be wrapped?
248 How do you prevent mutating array variables?
249 What are capture phase events?
250 How does React updates screen in an application?
251 How does React batch multiple state updates?
252 Is it possible to prevent automatic batching?
253 What is React hydration?
254 How do you update objects inside state?
255 How do you update nested objects inside state?
256 How do you update arrays inside state?
257 How do you use immer library for state updates?
258 What are the benefits of preventing the direct state mutations?
259 What are the preferred and non-preferred array operations for updating the state?
260 What will happen by defining nested function components?
261 Can I use keys for non-list items?
262 What are the guidelines to be followed for writing reducers?
263 How does ReactJS work behind the scenes?
264 How is `useReducer` Different from `useState`?
265 What is useContext? What are the steps to follow for useContext?
266 What are the use cases of useContext hook?
267 When to use client and server components?
268 What are the differences between page router and app router in nextjs?
269 Can you describe the useMemo() Hook?
270 Can Hooks be used in class components?
271 What is an updater function? Should an updater function be used in all cases?
272 Can useState take a function as an initial value?
273 What types of values can `useState` hold?
274 What happens if you call `useState` conditionally?
275 Is useState Synchronous or Asynchronous?
276 Can you explain how useState works internally?
277 What is `useReducer`? Why do you use useReducer?
278 How does `useReducer` works? Explain with an example
279 Can you combine **useReducer** with **useContext**?
280 Can you dispatch multiple actions in a row with useReducer?
281 Is dispatch from useReducer asynchronous and does it update state immediately?
282 How does useContext works? Explain with an example
283 Can You Use Multiple Contexts in One Component?
284 What's a common pitfall when using useContext with objects?
285 What would the context value be for no matching provider?
286 How do reactive dependencies in the useEffect dependency array affect its execution behavior?
287 When and how often does React invoke the setup and cleanup functions inside a useEffect hook?
288 What happens if you return a Promise from useEffect??
289 Can you have multiple useEffect hooks in a single component?
290 How to prevent infinite loops with useEffect?
291 What are the usecases of useLayoutEffect?
292 How does useLayoutEffect work during server-side rendering (SSR)?
293 What happens if you use useLayoutEffect for non-layout logic?
294 How does useLayoutEffect cause layout thrashing?
295 How Do You Use useRef to Access a DOM Element in React? Give an example.
296 Can you use useRef to persist values across renders??
297 Can useRef be used to store previous values?
298 Is it possible to access a ref in the render method?
299 What are the common usecases of useRef hook?
300 What is useImperativeHandle Hook? Give an example.
301 When should you use useImperativeHandle?
302 Is that possible to use useImperativeHandle without forwardRef?
303 How is useMemo different from useCallback?
304 Does useMemo prevent re-rendering of child components?
305 What is `useCallback` and why is it used?
306 What are Custom React Hooks, and How Can You Develop One?
307 How does React Fiber works? Explain in detail.
308 What is the useId hook and when should you use it?
309 What is the useDeferredValue hook?
310 What is the useTransition hook and how does it differ from useDeferredValue?
311 What is the useSyncExternalStore hook?
312 What is the useInsertionEffect hook?
313 How do you share state logic between components using custom hooks?
314 What is the useDebugValue hook?
315 How do you handle cleanup in useEffect?
316 What are the differences between useEffect and useEvent (experimental)?
317 What are the best practices for using React Hooks?