React Fundamentals (or Vue/Angular depending on expertise) Questions
Deep understanding of component architecture, hooks (useState, useEffect, useContext, useReducer, custom hooks), lifecycle methods, rendering optimization, and component composition patterns. Knowledge of controlled vs uncontrolled components, prop drilling vs context API, and when to use each pattern.
MediumTechnical
42 practiced
Using React functional components and hooks, build a reusable DataFetcher component in JavaScript or TypeScript that: 1) accepts an API endpoint prop, 2) fetches JSON on mount and when endpoint changes, 3) exposes loading, error and data states, 4) cancels inflight requests when unmounting or endpoint changes (use AbortController), and 5) avoids updating state on unmounted components. Include sample code and explain cleanup logic.
HardTechnical
58 practiced
Design an offline-first React web app (PWA) that supports critical read operations while offline and allows offline writes to be synchronized later. Describe service-worker caching strategies (cache-first for assets, network-first for dynamic data), background sync, storage choices (IndexedDB), conflict resolution strategies, security considerations, and how you would test offline flows.
HardSystem Design
55 practiced
Design a micro-frontends architecture for a large application using Webpack Module Federation. Explain how you'd split domains into remotes, share dependencies (React, UI libs), manage version compatibility, orchestrate routing and shell vs remote UI, and enable independent deployments while minimizing duplicate code and runtime conflicts.
EasyTechnical
61 practiced
Explain the difference between props and state in React. Provide a short example where you would 'lift state up' to a common parent to synchronize two sibling components (for example, a filter input and a results list). Describe how you would minimize unnecessary re-renders after lifting state.
HardTechnical
59 practiced
Provide a high-level algorithm or component design for virtualizing a long list where items have dynamic heights (e.g., chat messages with images). Explain how you'd measure and cache heights, map scroll offset to item index, render buffer items, and keep scroll position consistent when items above change height (for prepending messages). You may reference react-window but explain the custom handling for variable heights.
Unlock Full Question Bank
Get access to hundreds of React Fundamentals (or Vue/Angular depending on expertise) interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.