Q1
Explain the difference between client-side rendering (CSR), server-side rendering (SSR), and static site generation (SSG). When would you use each approach, and what are the trade-offs in terms of performance and SEO?
Why they ask this:* They want to assess your understanding of rendering strategies and whether you can make architectural decisions based on project requirements, performance metrics, and user experience needs.
Q2
Walk us through how you would optimize a React component that is re-rendering unnecessarily. What tools and techniques would you use to identify and fix the performance bottleneck?
Why they ask this:* They're evaluating your ability to diagnose performance issues, understand React's rendering lifecycle, and apply optimization techniques like memoization, code-splitting, and profiling in real-world scenarios.
Q3
Describe your approach to state management in a mid-sized application. Would you use Context API, Redux, Zustand, or another solution? What are the advantages and disadvantages of your choice?
Why they ask this:* They want to understand your architectural thinking, knowledge of state management ecosystems, and ability to justify technical decisions based on project complexity and team scalability.
Q4
How do you handle responsive design and cross-browser compatibility? Walk us through your testing strategy and the tools you use to ensure your applications work across different devices and browsers.