Separate when HTML is produced, how the result is reused or cached, how it is delivered, and what must execute in the browser. These decisions are independent and should not be collapsed into one rendering label.
How easy was it to remember?
Advanced Frontend Rendering
In React, what must match for hydration to work reliably?
The first client render must match the HTML React rendered on the server. Treat a mismatch as a bug: React may warn about it and does not guarantee that different attributes will be fixed.
How easy was it to remember?
Advanced Frontend Rendering
What four questions should every cache policy answer?
It should define what is stored, the cache key, how long the entry is usable, and how it is invalidated or refreshed. Cache behavior is a correctness decision, not only a speed optimization.
How easy was it to remember?
Advanced Frontend Rendering
On the first page load in Next.js, what are HTML, the RSC payload, and Client Component JavaScript each used for?
HTML shows a quick, non-interactive version of the page. The RSC payload is compact data that describes the server-rendered component tree; React uses it to match the server and client trees. Client Component JavaScript then attaches event handlers and makes the interactive parts work; React calls this hydration.
How easy was it to remember?
Advanced Frontend Rendering
In a Next.js App Router app, where do Server Components run, and what can they not do?
They run on the server, either during the build or while handling a request. They can fetch data and use server-only code, but they cannot use browser state, event handlers, or browser APIs.
How easy was it to remember?
Advanced Frontend Rendering
In Next.js, what does undefineduse clientundefined at the top of a file mean?
It marks that file as a boundary between server and client code. Components exported from it can run in the browser, so use it for parts that need state, event handlers, or browser APIs—not for every component.
How easy was it to remember?
Advanced Frontend Rendering
What does streaming SSR change, and what does it not change?
It changes when independently useful parts of a response are revealed as their data resolves. It does not by itself decide where the UI is rendered or eliminate the need for good loading, error, and cache boundaries.
How easy was it to remember?
Advanced Frontend Rendering
How do islands reduce the amount of JavaScript on a content-first page?
They leave most of the page as plain HTML that needs no JavaScript and send JavaScript only for small interactive areas. If those areas must share state, you need a clear way for them to coordinate.
How easy was it to remember?
Advanced Frontend Rendering
In a resumable framework, what startup work is resumability designed to avoid?
It tries to avoid rerunning the whole component tree just to rebuild event handlers and state after the page loads. Instead, the server sends enough information for the browser to continue only when the user interacts.
How easy was it to remember?
Advanced Frontend Rendering
Why can a page appear quickly but still feel slow when you try to use it?
The visible HTML can arrive quickly while JavaScript downloads, is parsed, and attaches event handlers. Long work on the browser main thread or slow data can delay a response to a click or key press. Measure both when content appears and how quickly interactions respond.
How easy was it to remember?
Advanced Frontend Rendering
How should you choose boundaries in a hybrid rendering system?
Separate stable cacheable content, fresh or personalized data, and truly interactive controls. Then choose production, caching, delivery, and browser activation for each boundary from the product requirements.
How easy was it to remember?
AI Evals
Before choosing an eval metric, what should you define first?
The system can fail because it did not find the right source or because it used a retrieved source incorrectly; separate measures help locate the failure.
How easy was it to remember?
AI Evals
Why can a small difference in score be misleading on a very small eval set?
One or two changed cases can move the percentage substantially, so repeat runs and inspect individual examples before treating the change as meaningful.
How easy was it to remember?
AI Evals
Why should a timeout be reported separately from an incorrect AI answer?
The Promise handler is a microtask. After the current stack empties, microtasks drain before the event loop selects another task such as a timer callback.
How easy was it to remember?
JavaScript Event Loop
What does setTimeout(callback, 0) guarantee about when callback runs?
It does not guarantee immediate execution. The callback becomes eligible as a task after timer rules allow it, and waits for current JavaScript and microtasks to finish.
How easy was it to remember?
SQL Joins Refresher
Which join should you use to keep every customer, including customers with no orders?
Classify the state by ownership and scope: local component state, shared client state, URL state, server state, form draft state, or workflow state. The classification should drive the tool choice, not the other way around.
How easy was it to remember?
State Management
Before choosing where to store a value, what should you ask?
Ask where the official value comes from: a component, the URL, the browser, the server, or an unfinished user draft. That tells you which copy should win when values differ and when you need to fetch the value again.
How easy was it to remember?
State Management
When a React Context value changes, what performance question should you ask?
Ask which components read that context and will re-render when its value changes, and whether that work is needed. Context shares a value; it does not decide who owns the state or provide a cache.
How easy was it to remember?
State Management
When comparing Redux Toolkit, a small store, and atom-based state, what should decide the choice?
Compare how each option updates the components that use it, the tools you need for saving data and debugging, and the conventions your team can follow. Choose the option that fits those needs, not the one with the best slogan.
How easy was it to remember?
State Management
Why should an unfinished form be stored separately from saved server data?
A form draft belongs to the browser, may be incomplete, and can fail validation. Saved data is the serverundefineds official version. Keeping them separate makes saving, undoing a failed save, and showing errors easier to reason about.
How easy was it to remember?
State Management
What is the first step in a senior-level state-management answer?
Classify the state before choosing a library. Then identify the source of truth, scope, transitions, synchronization needs, failure behavior, and performance trade-offs.
How easy was it to remember?
Nothing is due right now. Open a lesson to practice something new.