Next.js & React

Server-Side Rendering (SSR)

What It Is

Generating HTML on the server before sending to the browser

Analogy

Cooking the meal in the kitchen before bringing it to the table, rather than cooking at the table

Try It Out

SSR vs CSR

Server-Side (SSR)
1Server renders HTML
2Send complete page
3Fast initial load
Client-Side (CSR)
1Send empty shell
2JavaScript loads
3Browser renders