ReactJS_Advanced_Viva_Questions_Answers
ReactJS_Advanced_Viva_Questions_Answers
Answer: React Fiber is the new reconciliation engine in React 16+. It improves scheduling and performance
Answer: React uses the Virtual DOM, efficient diffing algorithms, and batching of updates. It avoids direct
Answer: Concurrent Mode enables React to interrupt rendering work to focus on more urgent updates. It
Answer: useMemo memoizes a computed value, while useCallback memoizes a function definition. Both help
Answer: React.lazy allows for dynamic import of components. Suspense lets you show fallback UI (like a
Answer: Context uses a Provider to pass values down the tree and Consumers or useContext to access
them. React tracks context usage and re-renders consumers when the value changes.
Answer: A custom hook is a reusable JavaScript function that can use React hooks. It helps in abstracting
Answer: Mounting: useEffect(() => {...}, []), Updating: useEffect with dependencies, Unmounting: return () =>
Answer: Use React.memo, useCallback, useMemo, avoid unnecessary state, lazy load components, and split
large components.
Answer: Reconciliation is the process by which React updates the DOM by comparing the new virtual DOM