what is server side rendering
Server-side rendering (SSR) is a technique for rendering web pages on the server instead of the client's browser.
- How it works: When a user requests a page, the server generates the full HTML content and sends it to the client. This allows the browser to display the content immediately upon receipt.
- Contrast with Client-Side Rendering (CSR): In CSR, the browser receives a minimal HTML page and uses JavaScript to fetch data and build the page content locally.
- Usage: SSR is frequently used with modern frameworks like React or Vue to improve initial load times and search engine optimization (SEO) by ensuring the server sends a fully rendered page to the browser. These two approaches are not mutually exclusive and are often combined within the same application.