1. Mid-level

    How do you identify and fix Unnecessary Re-renders with the React DevTools Profiler?

    Record an interaction with the Profiler and inspect the Flamegraph to see which components rendered and how long they took; check the "Why did this render?" panel.

    Read the full explanation
  2. Senior

    What is Virtualization (Windowing), and how do you use TanStack Virtual to display huge lists?

    It renders only DOM items currently visible in the Viewport, keeping the DOM small and the browser responsive even with millions of rows.

    Read the full explanation
  3. Mid-level

    What does React.memo cost, and why should you not use it by default on every component?

    React.memo adds a Shallow Compare of every prop on each render; if props always change or the component is simple, that comparison is extra work without benefit.

    Read the full explanation
  4. Senior

    How does dynamic Code Splitting affect Core Web Vitals (LCP, FID/INP, CLS)?

    It reduces the initial JavaScript bundle, speeding up code parsing and loading in the browser, improving LCP and INP, and preventing Main Thread Blocking.

    Read the full explanation
  5. Senior

    What is Layout Thrashing, and how do you avoid it in React components?

    It occurs when DOM measurements (such as offsetHeight) alternate with DOM style changes in a fast loop, forcing the browser to repeat expensive layout calculations (Reflow).

    Read the full explanation
  6. Senior

    How do you use Web Workers to move heavy calculations out of the Main Thread in React applications?

    Use Web Workers to process large datasets and decode files on a separate background thread, keeping the UI smooth and responsive at 60fps.

    Read the full explanation
  7. Junior

    What image-loading techniques prevent Cumulative Layout Shift (CLS) in React applications?

    Set fixed width and height or aspect-ratio in CSS, use lazy loading with loading="lazy", and provide modern formats such as WebP and AVIF.

    Read the full explanation
  8. Senior

    How do you find common Memory Leaks in React applications with Chrome's Memory Tab?

    Take and compare Heap Snapshots before and after opening and closing app screens, looking for Detached DOM Nodes or unreleased components.

    Read the full explanation
  9. Junior

    How do you avoid creating new objects and references (Inline Objects & Arrays) in a component body during Render?

    Define constants outside the component function if they do not depend on Props, or use useMemo to keep the same reference for objects that depend on props and are passed to child components.

    Read the full explanation
  10. Mid-level

    What are the benefits and challenges of Transitions for splitting work in React 18?

    Transitions keep the interface responsive during heavy work; the challenge is handling temporary Pending States and understanding concurrent UI update ordering.

    Read the full explanation