Q1
Walk me through how you would optimize a React component that's re-rendering unnecessarily. What tools would you use to identify the problem, and what solutions would you implement?
Why they ask this:* They want to assess your understanding of React performance optimization, profiling tools, memoization, and whether you can diagnose real-world performance issues systematically.
Q2
Explain the difference between CSS Flexbox and CSS Grid. When would you use each, and can you describe a complex layout you've built using both?
Why they ask this:* They're evaluating your mastery of modern CSS layout techniques and your ability to choose the right tool for responsive design challenges.
Q3
How would you handle state management in a mid-sized React application? Compare Redux, Context API, and Zustand—when would you choose each?
Why they ask this:* They want to understand your experience with different state management approaches and your ability to make architectural decisions based on project complexity and team needs.
Q4
Describe your approach to ensuring cross-browser compatibility and accessibility (a11y) in a frontend application. What testing tools and standards do you follow?