Frontend & React Interview Questions

$19$4.99summer sale
Get all 100 answers · $4.99
Summer Sale: $4.99 instead of $19 · Instant access · No subscription
14-day refund. No questions asked.If it doesn’t help, one email and your money’s back.
react-fundamentals1 free ↓
01
Why does my React component render twice?
Tests whether you know about Strict Mode's intentional double-invoke and can explain what a React re-render actually is versus a real DOM update.
free
In development, React's Strict Mode intentionally invokes your function component twice per render cycle. This is not a bug; it is designed to surface side effects hidden inside the render phase. If double-invoking changes the output, your component has impure render logic. The second invocation is discarded before the DOM updates, so you never see it in production. Outside of Strict Mode, a component re-renders any time its state or props change, its parent re-renders, or a context value it subscribes to is updated. A re-render is just React calling your function again and comparing the new output against the previous render tree through reconciliation. The DOM only changes where the output differs. Understanding this distinction between a React re-render and a DOM update is what separates developers who write performant components from those who guess.
Insider read
Really testing: Whether you know Strict Mode is intentional and can explain the full re-render model, not just cite the double-render symptom.
The tell: Juniors panic and disable Strict Mode. Seniors explain what the double-invoke is designed to catch, then pivot to describing the full set of re-render triggers.
Follow-up: "What happens if you disable Strict Mode to stop the double render in development?"
Say this"Disabling Strict Mode hides the symptom but guarantees you will ship an impure render bug to production. The double-invoke exists to catch exactly that class of problem before it reaches users."
02
What is the virtual DOM, and what does reconciliation actually do?
Tests whether you understand reconciliation beyond the 'it makes React fast' summary and can speak to what the diffing algorithm does and where the abstraction still costs you.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
03
What is JSX, and what does the compiler actually output?
Tests whether you know what JSX compiles to, why the old transform required importing React in every file, and what a React element object actually contains.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
04
What is the difference between a React component and a React element?
Tests whether you understand the factory-versus-instance distinction and can explain why passing a component function as a prop behaves differently from passing an already-rendered element.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
05
What is the difference between props and state?
Tests whether you understand ownership and data flow, not just syntax, and whether you can identify the anti-pattern of copying a prop into state and never syncing them.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
06
Why do keys matter in lists, and why do index keys cause bugs?
Tests whether you understand how React uses keys during reconciliation and can describe the specific failure mode that occurs when array index is used as a key on a reordered or filtered list.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
07
What is the difference between a controlled and an uncontrolled input?
Tests whether you understand who owns the source of truth for an input's value and can describe the hybrid anti-pattern that silently produces a read-only field.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
08
What does lifting state up mean, and when do you actually need it?
Tests whether you understand the mechanics of sibling communication in React and can identify when lifting creates a re-render problem that points toward context or external state.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
09
Why does React favor composition over inheritance?
Tests whether you understand why React's design deliberately avoids class hierarchies and can explain how the children prop and component-as-prop patterns replace what inheritance would provide.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
10
What are Fragments, and when would you use one over a wrapper div?
Tests whether you understand why Fragments exist and can identify the layout and semantic problems that unnecessary wrapper divs introduce in real CSS contexts.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
11
What are React Portals, and what problem do they solve?
Tests whether you understand how Portals let a component render outside its DOM parent while staying inside the React component tree, and why event bubbling still follows the React tree.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
12
What does React 18's concurrent rendering model actually change?
Tests whether you understand what concurrency means in React's context, why it does not require rewriting components, and what new constraint it places on render functions.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
13
What is useTransition, and when should you reach for it?
Tests whether you understand the urgent versus non-urgent update distinction and can identify correct use cases without over-applying the API to every state update.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
14
What is Suspense, and what problems does it solve?
Tests whether you understand how Suspense shifts loading state from scattered isLoading booleans to a declarative boundary, and how its role expanded from code splitting to data fetching in React 18.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
15
What are React Server Components, and how do they differ from client components?
Tests awareness-level understanding of the server component model: what runs where, what each type can and cannot do, and why the split must be a deliberate architectural decision.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
16
What triggers a re-render in React, and how do you control unnecessary ones?
Tests whether you can enumerate all re-render triggers and know the correct memoization tools for each, without advocating premature optimization as a default practice.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
17
How does React decide which elements to update during reconciliation?
Tests whether you know the two heuristics behind React's diffing algorithm and can explain why changing a component's type always destroys its state.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
hooks-state-management1 free ↓
18
What's the difference between useState and useRef, and when do you pick each?
Tests whether you understand the render cycle contract and can give a principled answer about where a value belongs, not just pattern-match on useRef being for DOM nodes.
free
I reach for useState when a value needs to drive a re-render: form inputs, toggle flags, fetched data. I reach for useRef when I need to persist a value across renders without triggering one: storing a timer ID, capturing a previous prop for comparison, or holding a DOM node. The critical distinction is that mutating ref.current is invisible to React, so it never schedules a paint. The mistake I see most is using a ref to hold something the UI depends on, then wondering why the screen does not update. My rule: if the display changes when the value changes, that is state. If it is bookkeeping the component needs but the user never sees, that is a ref.
Insider read
Really testing: Whether you understand the render cycle contract and can articulate the full class of non-rendering persistent values useRef covers, not just DOM node references.
The tell: Juniors say useRef is for accessing DOM elements. Seniors explain the render cycle contract and name the broader class of non-rendering persistent values: timer IDs, previous prop snapshots, mutable callback holders.
Follow-up: "If you store a callback in a ref to avoid stale closures, what are the tradeoffs?"
Say this"Mutation through ref.current skips React entirely. It works, but you give up React's control over when side effects run. It is a valid escape hatch, not a default pattern."
19
How does the useEffect dependency array actually work, and what breaks when you get it wrong?
Tests whether you understand the dependency array as a conditional re-run trigger rather than a list of values to watch, and whether you have diagnosed dependency bugs under real conditions.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
20
What does a useEffect cleanup function do, and when do you actually need one?
Tests whether you understand the cleanup model well enough to prevent memory leaks, race conditions, and accumulating subscriptions in production components.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
21
Why does useEffect run twice on mount in development, and what is React trying to tell you?
Tests whether you understand React 18 StrictMode's intentional design, can explain the purpose behind the double-invocation, and know that the correct response is proper cleanup rather than suppression.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
22
When should you NOT reach for useEffect?
Tests whether you recognize that useEffect is specifically for synchronizing with external systems, not a general-purpose reaction hook for responding to state changes inside the component.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
23
What is a stale closure in hooks, and how do you fix it when it bites you?
Tests whether you can explain why hooks capture values at render time and diagnose the class of bugs that follow when effects or callbacks reference state that has since been updated.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
24
When does useMemo actually help, and when is it just cargo cult optimization?
Tests whether you understand the cost model of memoization and can distinguish the cases where it pays off from the many where it adds noise without any measurable benefit.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
25
When does useCallback actually help, and what is the most common misuse?
Tests whether you know that useCallback is specifically about referential stability for downstream consumers, not about avoiding function recreation, which is cheap on its own.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
26
What makes a custom hook well-designed versus just a function that happens to call other hooks?
Tests whether you have a principled approach to hook extraction and can distinguish genuine abstractions that hide complexity from code-organization moves that just relocate it.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
27
When do you reach for useReducer instead of useState, and what does it actually buy you?
Tests whether you understand the reducer pattern as a tool for managing related state transitions rather than as useState with extra ceremony, and whether you apply it only when it pays off.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
28
What is the re-render cost of React Context, and how do you limit it?
Tests whether you understand that Context has broadcast semantics, meaning every consumer re-renders on any value change, and whether you have practical strategies for controlling the blast radius.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
29
What is state colocation, and why does it matter for both performance and maintainability?
Tests whether you have a principled mental model for deciding where state lives and understand that premature lifting is as harmful as unnecessary global state.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
30
When do you actually need Redux, Zustand, or Jotai, and when is built-in React state enough?
Tests whether you reach for external state libraries deliberately based on a specific problem rather than by habit, and whether you can name the exact failure modes of built-in state that justify each library.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
31
How do you think about server state versus client state, and where does React Query fit?
Tests whether you have made the conceptual separation between asynchronous remote data and local UI state, and whether you have used a caching layer that handles loading, error, and staleness automatically.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
32
What are the classic derived state pitfalls in React, and how do you avoid them?
Tests whether you can identify anti-patterns like copying props into state on sight and know the correct fix, and whether you understand useMemo as the performance-sensitive path for expensive derivations.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
33
What are the main approaches to managing form state in React, and how do you choose between them?
Tests whether you have practical experience with multiple form patterns and can match the approach to the complexity of the form rather than reaching for a heavy library by default.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
34
How does React 18's automatic batching change the way you reason about state updates?
Tests whether you understand that React 18 extended batching beyond synthetic event handlers, can name what changed and why, and know the escape hatch for the rare cases that need synchronous flushing.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
css-layout-styling1 free ↓
35
Flexbox or Grid: how do you decide?
Tests whether you understand the dimensional difference between the two layout models and can choose based on the layout shape rather than familiarity.
free
My default rule is one dimension versus two. I use Flexbox when I am arranging items along a single axis, like a navigation bar or a row of cards that wraps. I use CSS Grid when the layout depends on both rows and columns simultaneously, like a dashboard, a photo gallery, or any design that requires explicit tracks. The confusion arises because Flexbox can fake two-dimensional alignment in many situations, so developers never bother learning Grid. The tell is when I find myself fighting flex-wrap and manually sized flex-basis values to approximate a grid layout. That friction is Grid telling me it belongs. I pick the tool that matches the mental model of the layout, not the one I happen to know better.
Insider read
Really testing: Whether you understand that Flexbox and Grid solve different layout problems and can name the friction signal that tells you when you chose the wrong one.
The tell: Juniors say they mostly use Flexbox. Seniors describe the dimensional boundary and explain exactly when each layout model stops being the right fit.
Follow-up: "What does align-content do in Flexbox and why does it only work sometimes?"
Say this"align-content distributes extra space along the cross axis across multiple flex lines, but it only has an effect when flex-wrap is active and the container actually has more than one row of items. With a single row, it does nothing."
36
How do you center something in CSS?
Tests whether you can answer without defaulting to one memorized approach and understand that the correct method depends on what you control in the layout.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
37
What is the CSS cascade and how does specificity work?
Tests whether you understand why styles unexpectedly override each other and can reason about selector weight without relying on trial and error.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
38
CSS-in-JS, CSS Modules, or Tailwind: how do you choose?
Tests whether you can weigh real trade-offs around scoping, performance, and team ergonomics rather than defaulting to whichever tool you used last.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
39
What does mobile-first CSS mean and why does it matter?
Tests whether you understand mobile-first as a cascade strategy with concrete stylesheet benefits, not just a design philosophy.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
40
What are container queries and when do you reach for them?
Tests whether you know the limitation of viewport-based media queries for component-level responsiveness and can describe the problem container queries were designed to solve.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
41
How does clamp() work and when do you use it for fluid typography?
Tests whether you understand the three-argument syntax, the fluid scaling behavior, and which mistake removes the fluid behavior entirely.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
42
Walk me through all five CSS position values.
Tests whether you can describe all five values accurately, explain containing block behavior, and identify the most common bug each one produces.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
43
Why does z-index sometimes stop working the way you expect?
Tests whether you understand stacking contexts, what creates them, and why increasing the z-index number almost never fixes the real problem.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
44
What is the CSS box model and why does box-sizing: border-box matter?
Tests whether you understand how width and height are calculated by default and can explain why the default behavior causes so much layout arithmetic.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
45
What are CSS custom properties and how are they different from preprocessor variables?
Tests whether you understand that custom properties are live, DOM-scoped, and accessible to JavaScript, unlike preprocessor variables that resolve at compile time.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
46
px, em, or rem: when do you use each, and what breaks when you choose wrong?
Tests whether you understand relative units mechanically, or just cargo-cult rem everywhere.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
47
How do you implement dark mode in CSS?
Tests whether you know the prefers-color-scheme media query, how custom properties make theme switching maintainable, and the trade-off between OS-driven and user-toggle approaches.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
48
How do you write CSS that scales well in a design system?
Tests whether you understand the difference between component-level styles and system-level tokens, and how early constraints determine how maintainable the system stays at scale.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
49
What are the most common accessibility mistakes in CSS?
Tests whether you treat accessibility as an integral part of styling decisions rather than a compliance checklist applied after the visual design is finalized.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
50
How do you handle focus styles without making the design look broken?
Tests whether you know :focus-visible, understand the design-accessibility tension it resolves, and have an implementation pattern that satisfies both concerns.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
51
How does WCAG color contrast work and what do the thresholds mean in practice?
Tests whether you can translate contrast ratio numbers into actionable design decisions and know where contrast failures commonly hide in production interfaces.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
Stop guessing what they're scoring.
// 100 questions · model answers · insider reads · $4.99 one-time
Unlock all 100 · $4.99
browser-performance-web-vitals1 free ↓
52
The page feels slow. Walk me through how you find out why.
Tests whether you have a systematic diagnostic process rather than jumping straight to DevTools or guessing, and whether you separate lab tools from real-user data.
free
My first move is to separate perception from measurement. I open Chrome DevTools Performance panel and record a cold load, then check Lighthouse for a lab baseline across LCP, CLS, and TBT (the lab proxy for INP; INP itself needs field data or a DevTools timespan recording). At the same time I look at real-user monitoring data if it exists, because lab scores and field scores diverge constantly. I check the Network tab for render-blocking resources, oversized images, and slow third-party scripts. Then I look at the main-thread flame chart for long tasks over 50ms. Only after I have data in front of me do I form a hypothesis. Gut instinct is a starting point, not a diagnostic.
Insider read
Really testing: Whether you triage systematically and distinguish field data from lab data before touching any tool.
The tell: Juniors say "I run Lighthouse." Seniors describe a layered workflow: RUM data first, then lab reproduction, then waterfall and flame chart analysis.
Follow-up: "Your Lighthouse score is 90 but users still complain it feels slow. What is going on?"
Say this"Lighthouse is a lab tool with a simulated device and network. A real user on a mid-range phone on 4G has a completely different experience. I always correlate the lab score with field data from CrUX or my own RUM before concluding the score represents the user."
53
What are Core Web Vitals and what does each one actually measure?
Tests whether you know LCP, CLS, and INP at the level of what triggers them, not just their names and thresholds.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
54
Walk me through the browser's critical rendering path and where performance bottlenecks hide.
Tests whether you understand the sequence from raw bytes to pixels and can name the exact stage each class of bottleneck belongs to.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
55
How do you improve Largest Contentful Paint?
Tests whether you can name the specific bottlenecks that delay LCP and match each to its fix, rather than offering generic performance advice.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
56
What causes Cumulative Layout Shift and how do you fix it?
Tests whether you know the specific rendering behaviors that cause elements to move unexpectedly and the CSS or markup patterns that prevent them.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
57
How do you debug and improve Interaction to Next Paint?
Tests whether you understand the three components of INP and can identify which phase is responsible for a slow interaction.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
58
What is code splitting and how do you implement it in a React application?
Tests whether you understand why bundle size directly affects parse and execution time, and whether you know the React APIs that enable it at the component level.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
59
How do you optimize images for the web in a modern React application?
Tests whether you know the full image optimization stack: format choice, responsive sizing, lazy loading, and LCP-specific priority hints.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
60
How do you handle font loading without hurting LCP or causing layout shift?
Tests whether you understand the font loading pipeline and the tradeoffs between each font-display strategy.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
61
How do you analyze and reduce JavaScript bundle size?
Tests whether you know the workflow for finding what is large, why it is there, and how to remove or defer it systematically.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
62
How does React.memo work and when does it actually help performance?
Tests whether you understand the shallow comparison React.memo performs and can reason about when the memoization cost exceeds the re-render cost.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
63
When do you reach for list virtualization and how do you implement it?
Tests whether you understand why rendering thousands of DOM nodes is expensive and which library patterns address it.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
64
What is hydration cost in a server-rendered React app and how do you reduce it?
Tests whether you understand what the browser actually does during hydration and why it is expensive on large pages.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
65
How do HTTP caching, CDN caching, and service workers each reduce load time?
Tests whether you understand the three caching layers as distinct mechanisms with different scopes and failure modes.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
66
What is the difference between RUM and Lighthouse, and when does each give misleading results?
Tests whether you understand that synthetic lab tools and real-user monitoring measure different things and diverge in predictable ways.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
67
How do third-party scripts damage performance and what can you do about it?
Tests whether you understand the specific mechanisms by which third-party scripts hurt Core Web Vitals and the tools available to constrain their damage.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
68
How do you use React transitions and concurrent features to keep an app feeling responsive?
Tests whether you understand what React 18 concurrent mode actually changes about how rendering is scheduled and interrupted.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
frontend-architecture1 free ↓
69
CSR, SSR, SSG or something in between: how do you choose a rendering strategy?
Tests whether you can match rendering mode to actual product requirements rather than defaulting to one approach for every project.
free
My default question is: does this page change per user or per request? Static site generation wins for marketing pages and docs because build-time rendering is free CDN cache. Server-side rendering earns its complexity when content is personalized or must be fresh on every load, like a dashboard or checkout page. Client-side rendering is fine for highly interactive apps behind a login where SEO does not matter. Most real products land in the middle, so I reach for a hybrid: statically generate the shell, stream server-rendered data into it, and hydrate interactivity on the client. The mistake I see is defaulting to CSR everywhere because it is familiar, then retrofitting SSR at scale to fix Core Web Vitals scores that product suddenly cares about.
Insider read
Really testing: Whether you reason about rendering mode as a trade-off between freshness, SEO, time-to-first-byte, and infrastructure complexity rather than just picking the framework default.
The tell: Juniors say "we use Next.js." Seniors explain which rendering mode each route uses and why, and describe the hybrid strategies that let one app mix modes.
Follow-up: "What happens to your SSG pages when the underlying data updates hourly and you have ten thousand of them?"
Say this"I ask whether the page changes per-user, per-request, or almost never, then pick the mode that serves that update frequency at the cheapest infrastructure cost. Incremental static regeneration is often the answer for data that changes but does not need to be instant."
70
How do you design a component's props API so it stays flexible without becoming impossible to use?
Tests whether you think about the consumer's experience and future extensibility when designing component interfaces, not just what works for the immediate use case.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
71
What are compound components and when do they solve problems that regular props cannot?
Tests whether you understand the compound components pattern and can articulate when composable sub-components outperform a single monolithic props API.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
72
How do you structure folders in a large React codebase so the project stays navigable as it grows?
Tests whether you have a principled view on feature-based versus layer-based organization and can explain why the common default breaks down at scale.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
73
What separates a design system from a component library, and which one does a growing team actually need first?
Tests whether you understand design tokens, the role of documentation and ownership, and what actually drives consistency across product teams at scale.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
74
Micro-frontends: when are they actually the right answer, and when are they just complexity for its own sake?
Tests whether you can give an honest cost-benefit assessment rather than treating micro-frontends as a blanket modernization strategy for any large frontend.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
75
What is a request waterfall in frontend architecture, and how do you design your data fetching to avoid one?
Tests whether you understand how component-level data fetching creates sequential dependencies and can describe strategies that load data in parallel.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
76
How do you implement optimistic updates, and what do you do when the server rejects the change?
Tests whether you can design mutation flows that feel instant without introducing inconsistent state when the server disagrees with the client's prediction.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
77
How do you use error boundaries in React, and what does a resilient component architecture actually look like?
Tests whether you treat error handling as an architectural concern distributed through the component tree, rather than a single catch-all wrapper at the root.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
78
How do you handle authentication in a single-page app: tokens in localStorage, httpOnly cookies, or something else?
Tests whether you understand the security trade-offs between token storage options and can design a refresh flow that handles concurrent requests without a race condition.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
79
How do you architect client-side routing in a large React app, including code splitting, auth guards, and nested layouts?
Tests whether you treat routing as an architectural layer that handles authorization, lazy loading, and layout composition rather than just matching URLs to components.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
80
What does proper internationalization look like at the architecture level, not just swapping strings?
Tests whether you think beyond message keys to locale-aware formatting, layout directionality, and the CI pipeline that keeps translations in sync with source code.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
81
Monorepo or polyrepo for a multi-package frontend platform: how do you decide, and what are the real trade-offs?
Tests whether you can articulate the operational and developer-experience trade-offs rather than defaulting to whichever approach you have used most recently.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
82
How does TypeScript change frontend architecture decisions, beyond just catching typos?
Tests whether you see TypeScript as a structural design tool that enforces API contracts and models domain logic, not just a linter that catches undefined variables.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
83
When an interviewer asks you to design a frontend system from scratch, what is your framework for answering?
Tests whether you have a structured approach to open-ended system design questions rather than diving straight into component trees or listing every technology you know.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
84
Design a real-time notification system for a web app. Walk through the architecture from transport to component.
Tests whether you can apply frontend system design thinking end-to-end for a real-time feature, covering transport choice, state shape, and graceful degradation.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
testing-debugging-frontend1 free ↓
85
A user reports a bug you can't reproduce. What do you do?
Tests whether you have a systematic process for narrowing down environment-specific failures rather than guessing or dismissing reports you cannot recreate locally.
free
My first step is to gather environment details: browser version, OS, screen size, network conditions, and the exact sequence of clicks. I ask the user to record a short video or share a console screenshot. Then I check our error monitoring tool for exceptions logged around the time of the report. If nothing surfaces, I audit feature flags and A/B variants, because the user may be in a cohort I have not tested myself. I also look for race conditions tied to slow connections. If the bug still does not reproduce, I add targeted logging to the suspected code path and ask the user to trigger it again. Reproducing the exact environment is the job; guessing without it wastes everyone's time.
Insider read
Really testing: Whether you treat bug reports as data-gathering exercises and work methodically toward reproduction, rather than dismissing reports you cannot immediately recreate.
The tell: Juniors say they checked locally and could not see it. Seniors describe a structured triage process that ends with either a reproduction or a targeted instrumentation plan.
Follow-up: "The user is on a mobile device in a country with high latency. How does that change your investigation?"
Say this"I would look at network waterfall timing in a throttled DevTools profile, check whether any timeout values are hardcoded for fast connections, and test the flow end-to-end on a real device using a hotspot."
86
What is the core philosophy behind React Testing Library, and why does it matter?
Tests whether you understand the principle of testing user behavior over implementation details and can articulate why that produces more durable test suites.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
87
What should you test in a React component, and what should you deliberately leave out?
Tests whether you can prioritize test coverage around user-facing behavior and avoid wasting effort on implementation details that TypeScript or the framework already enforces.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
88
How does Mock Service Worker change how you test API-dependent components?
Tests whether you understand network-level mocking and why intercepting requests at the service worker layer produces more realistic and maintainable tests than patching module imports.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
89
How do you test a custom React hook in isolation?
Tests whether you know the renderHook utility and understand how to handle async state transitions inside hook tests without building unnecessary wrapper components.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
90
When does end-to-end testing with Playwright or Cypress actually earn its cost?
Tests whether you can weigh the maintenance cost of E2E tests against the confidence they provide and make deliberate decisions about where in the testing pyramid to invest.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
91
What is visual regression testing and when is it worth setting up?
Tests whether you understand screenshot-based comparison testing, its failure modes, and the specific situations where the extra tooling investment pays off.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
92
How do you approach accessibility testing in a React application?
Tests whether you combine automated tooling with manual verification and understand that automated checks cover only a fraction of real accessibility failures.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
93
How do you use the React DevTools Profiler to find performance problems?
Tests whether you can translate profiler output into actionable findings rather than just knowing the tool exists.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
94
What does why-did-you-render do and when should you reach for it?
Tests whether you understand the tool's mechanism and can explain the class of performance problems it surfaces that the built-in DevTools Profiler alone does not expose.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
95
How do you use source maps to debug production errors?
Tests whether you understand the full pipeline from minified bundle to readable stack trace and the security trade-off involved in where source maps are stored.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
96
What does browser DevTools mastery look like at the senior frontend level?
Tests whether you have a deep working knowledge of DevTools panels beyond the Network tab and can articulate which tool to reach for in specific debugging scenarios.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
97
What causes flaky frontend tests and how do you fix them systematically?
Tests whether you can diagnose the root causes of test non-determinism rather than retrying failed tests and hoping they pass.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
98
How do you test forms and async UI interactions in React?
Tests whether you can write tests that simulate real user input sequences, handle pending and resolved states, and cover error paths as rigorously as the happy path.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
99
When is snapshot testing useful and when does it become a liability?
Tests whether you can make a considered judgment about where snapshot tests add genuine regression protection and where they produce noise that developers learn to dismiss.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
100
How do you decide the right balance between unit, integration, and end-to-end tests?
Tests whether you have a principled mental model for allocating testing investment across the pyramid rather than defaulting to one layer out of habit or historical convention.
Full answer + insider read in the complete set.Unlock all 100 · $4.99
// complete set

All 100 questions. Every model answer. Every insider read.

Walk in knowing what a senior answer sounds like, and what they're actually scoring.

$19 $4.99
// one-time · instant access · lifetime · no subscription
// interview bootcamp: $5,000+ · 1:1 coach: $200/hour · this playbook: $4.99
Unlock all 100 for $4.99
14-day money-back guarantee. No questions asked.
// what happens when you pay
1Secure checkout opens. Card, Apple Pay, Google Pay or PayPal, processed by Stripe.
2All 100 unlock instantly. Your private link opens the moment payment clears.
3It's yours for good. The receipt email contains your permanent link. Lose it? Email us, we resend.
VISAMastercardAmexApple PayGoogle PayPayPal
// payment handled by Lemon Squeezy, our merchant of record. We never see your card details. Support: support@howto-playbooks.com
Common questions
Why not just ask ChatGPT?+
ChatGPT gives you a plausible answer. It does not tell you whether that answer makes an interviewer want to hire you. The whole product is the insider read: what they're really testing, how a junior answer sounds versus a senior one, and the follow-up they'll throw next.
Are these realistic interview questions?+
They're modeled on the question patterns that come up in frontend and React interviews at Meta, Airbnb, Netflix, Shopify and Vercel, covering React fundamentals, hooks and state management, CSS and layout, browser performance and web vitals, frontend architecture, and testing and debugging. Every answer includes what the interviewer is scoring.
What's different from free question lists?+
Free lists give you questions. This gives you the model answer plus what the interviewer is actually scoring, the junior vs. senior tell, and the follow-up coming next.
What if it doesn't help?+
14-day, no-questions-asked refund. Email support@howto-playbooks.com with your order number and we refund in full.
What format is it?+
A single web page, bookmarkable, works on any device. All 100 questions expandable with answers and insider reads. Lifetime access.
How do I get access after paying?+
Instantly. The moment payment clears, your private link opens with all 100 questions and answers. Your receipt email contains the same permanent link, so you can come back anytime, on any device. If you ever lose it, email support@howto-playbooks.com and we resend it.
Is the payment secure?+
Yes. Checkout is handled by Lemon Squeezy, our merchant of record, with payments processed by Stripe, the same infrastructure used by Amazon and Shopify. Card, Apple Pay, Google Pay and PayPal are supported. Your card details never touch our servers.
// more playbooks: 100 questions each
$4.99 one-time
// 100 questions · insider reads · 14-day refund
Unlock all 100