Scenario-Based · Section 28
Scenarios: Performance Debugging
10 questions. Hands-on performance scenarios: slow pages, re-render storms, memory growth, expensive calculations, sluggish search and huge lists.
"The app is slow" is one of the most common scenario prompts in React interviews. Strong answers always start with measuring (React Profiler, Chrome Performance panel, Lighthouse) before reaching for memo, useMemo or virtualization.
01Your React application suddenly becomes slow after adding new features. How would you identify and fix the issue?02A page takes 8-10 seconds to load. How would you optimize it?03Your dashboard has 100+ components. Updating one widget causes the entire dashboard to re-render. How would you solve it?04A parent component re-renders frequently, causing all child components to re-render. How would you optimize it?05Your React application consumes too much memory after prolonged usage. How would you debug it?06How would you profile a React application's performance?07How would you identify unnecessary re-renders?08A component performs expensive calculations on every render. How would you optimize it?09A search input becomes sluggish when filtering a large dataset. How would you fix it?10How would you optimize rendering for a list containing 100,000 items?