Skip to content
RED SAGSkills
mediumFrontend Developer interview question

Explain client-side rendering, server-side rendering and static site generation. When would you use each?

What the interviewer wants to hear

  • CSR: browser downloads JS and builds the page
  • SSR: server renders HTML per request, then hydrates
  • SSG: HTML built at build time and served from a CDN
  • Trade-offs: SEO, first load speed, server cost, freshness
  • Hybrid options like ISR and streaming

Model answer

With client-side rendering the server sends almost empty HTML and a JavaScript bundle, and the browser builds the page. It is simple to host and good for app-like dashboards behind login, but the first load is slower and SEO is weaker. With server-side rendering the server builds HTML for each request, so users and crawlers see content quickly, then the page hydrates to become interactive. It suits personalised or frequently changing pages, but costs server time. Static site generation builds HTML at build time and serves it from a CDN, which is the fastest and cheapest, good for blogs, docs and marketing pages. Modern frameworks like Next.js mix these per route, with incremental regeneration and streaming for the parts that are slow.

Can you answer it under time pressure?

Take a timed medium round and get scored on every answer.

Start mock interview

More medium Frontend Developer questions