InterviewStack.io LogoInterviewStack.io

Frontend Component and State Architecture Questions

Structuring client applications for maintainability: component architecture and code organization, state management and data flow, data-fetching patterns, routing and navigation, micro-frontends, and rendering strategy trade-offs. Covers designing a frontend that scales in complexity without becoming brittle.

MediumSystem Design
104 practiced

Design a state strategy for a notifications system in a medium-size web app. Requirements: real-time updates via WebSocket, persistent storage in backend, deduplication, and a toast UI with both transient toasts and persistent notification list. Describe how you would partition state between local component state, shared client state, and server sync.

HardTechnical
93 practiced

Draft a step-by-step migration plan to move from a single monolithic global store to per-feature scoped stores in a large application. Include adapter layers for interoperability, synchronization of shared entities, feature flags, testing strategy, ownership transfer, monitoring, and rollback plans.

MediumTechnical
80 practiced

Describe Angular's OnPush change detection strategy. Provide a concise TypeScript example of a component using OnPush and explain how immutable patterns or observables should be used to ensure views update correctly. List common pitfalls and debugging tips.

HardTechnical
80 practiced

An Angular application shows memory leaks and performance degradation. Many services and components create long-lived RxJS subscriptions without teardown. Explain how you would identify leaking subscriptions in production and propose code patterns and architecture changes (e.g., takeUntil, async pipe, OnPush) to prevent and enforce proper subscription handling across a large codebase.

MediumTechnical
102 practiced

Explain when to use a server-state library (e.g., React Query or SWR) instead of storing server responses in your global store. Describe cache invalidation strategies, background refetching, garbage collection policies, mutation handling (optimistic/rollback), and combining server-state libs with local UI state.

Unlock Full Question Bank

Get access to all Frontend Component and State Architecture interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.