1
What is the primary architectural difference between Server and Client Components in React 19?
middleMukammal Javob:Server Components render exclusively on the server and introduce zero JavaScript overhead into the client bundle. They can securely access backend resources directly. Client Components (marked with 'use client') hydrate in the browser to support interactivity and DOM events.
Intervyuyer siri: Verify that the candidate knows 'use client' boundary should be pushed down to leaf nodes rather than decorating root layouts.
2
When should useCallback and useMemo actually be used, and when do they represent premature optimization?
middleMukammal Javob:They should be reserved for: 1) Expensive computations; 2) Preserving referential identity when passing props to components wrapped in React.memo or dependency arrays.
3
How does the Virtual DOM work and what is the Reconciliation process?
seniorMukammal Javob:The Virtual DOM is an in-memory representation of the real DOM. Upon state change, React computes a diff between the new and prior virtual trees and applies minimal batch mutations to the real DOM.