This question evaluates competence in React debugging and frontend performance optimization, focusing on identifying unnecessary re-renders, event listener and memory leaks, rendering misalignment, and strategies for optimizing severely laggy components.

You're reviewing a React single-page application during a technical phone screen. The codebase exhibits bugs and performance issues, but no specific files are provided here. You should outline how you would systematically detect and fix the following problems, describing the tools, signals, and code patterns you would look for.
Assume React 18 and a modern browser environment. Include specific tools (e.g., React DevTools Profiler) and minimal code examples where helpful.
Login required