React Architecture & "Under the Hood" Flashcards

This is the "Senior-level" knowledge that explains the "magic" behind the scenes. (4 cards)

1
Q

React Server Components (RSC)

A

Definition: Components that execute only on the server, sending a serialized “payload” to the client instead of a full JS bundle.Key Concepts: Zero bundle size, direct database access, “Server-Only” logic.Evaluator Tip: In an evaluation, flag any component that fetches secret API keys on the client. These should be Server Components to ensure the secret never touches the browser.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Hydration vs. Streaming

A

Definition: Hydration is the process of attaching event listeners to static HTML. Streaming allows React to send HTML chunks to the browser as they are ready.Key Concepts: Suspense is the orchestrator of streaming. It lets the shell of the app load while heavy components “stream” in later.Evaluator Tip: If a page has a “blocking” fetch that makes the whole screen white while loading, suggest wrapping the slow component in Suspense to enable streaming.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The React Compiler (Forget)

A

Definition: A build-time tool that automatically memoizes components, props, and hooks, theoretically removing the need for manual useMemo or useCallback.Key Concept: Automatic dependency tracking.Evaluator Tip: While the compiler handles much of the work, senior evaluators still look for stable object references and proper component structure, as the compiler can’t “fix” fundamentally broken logic (like unstable keys).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Partial Pre-rendering (PPR)

A

Definition: A performance feature where the static parts of a page are pre-rendered into a “shell” (prelude), while dynamic holes are filled in asynchronously.Use Case: An E-commerce page where the layout is static but the “User Profile” or “Cart” is dynamic.Evaluator Tip: This is the peak of 2026 web performance. Look for usage of Suspense boundaries to define where these “dynamic holes” exist.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly