This curated collection of 100+ Technical Questions & Detailed Answers covers everything from college viva-voce examinations (BCA, BSc Computer Science, MCA, B.Tech IT) to technical interviews at leading tech firms.
Answer: React is an open-source, component-based front-end JavaScript library maintained by Meta (Facebook). It was invented by Jordan Walke and released in 2013 for building high-performance, reactive user interfaces.
Answer: The Virtual DOM is a lightweight in-memory representation of the real DOM. When state changes, React creates a new Virtual DOM tree, diffs it against the previous tree using an O(n) heuristic algorithm, and surgically updates only the altered nodes in the browser DOM.
Answer: Props are read-only, immutable configuration parameters passed from parent to child. State is internal, mutable component memory managed via useState/useReducer that triggers re-renders when mutated.
Answer: JSX stands for JavaScript XML. It is a syntax extension that combines HTML-like tags with JavaScript. Browsers cannot execute JSX directly; build tools compile JSX into React.createElement() function calls.
Answer: SyntheticEvents are React's cross-browser wrappers around native DOM events, standardizing event handling across Chrome, Safari, Firefox, and Edge.
Answer: 1. Only call hooks at the top level (never inside loops, conditions, or nested functions). 2. Only call hooks from React functional components or custom hooks.
Answer: Omitted: runs after every render. Empty []: runs once on mount. [a, b]: runs on mount and whenever variables 'a' or 'b' change value.
Answer: The cleanup function clears timers (clearInterval), removes event listeners, and cancels active network subscriptions to prevent memory leaks before unmounting or re-running.
Answer: useMemo caches the computed return value of an expensive function. useCallback caches the function definition reference itself to prevent child re-renders.
Answer: Use useRef when you need to store a mutable value that does NOT trigger a re-render when changed (e.g. DOM references, timer IDs, or previous state).
Answer: Prop drilling is passing data through multiple intermediate components that don't need it. It is resolved using React Context API or state libraries like Redux Toolkit and Zustand.
Answer: RTK simplifies Redux by combining reducers and action creators via createSlice, integrating Immer for safe mutation syntax, and bundling Redux Thunk out-of-the-box.
Answer: <Outlet /> acts as a dynamic placeholder inside parent layout routes where child route components are rendered upon matching.
Answer: React Fiber is the reimplementation of React's core reconciler. It models units of work as a linked list of Fiber nodes, enabling incremental rendering, time-slicing, and prioritization of user interactions.
Answer: RSC are components that run exclusively on the server and add 0 KB JavaScript to client bundles. They query databases directly and stream HTML chunks to the browser.
Answer: useOptimistic allows you to show immediate UI feedback before an async server request completes, automatically rolling back if the request fails.
Now apply your theoretical knowledge by building practical capstone projects in React Practice Projects & Exercises.
Accelerate your React mastery by studying these tightly connected core tutorials:
Review foundational concepts and architecture.
Practical interview coding assignments.
Quick syntax lookups and API quick reference.
Crucial senior engineer interview topic.