CSR vs SSR

  • In CSR, the server sends the HTML file with a script tag
  • The script tag fetches the JavaScript file and renders the content
  • In SSR, the server sends the HTML file with the content already rendered
  • The content is hydrated with JavaScript to make it interactive