-
Book Overview & Buying
-
Table Of Contents
Web Development with Blazor - Fourth Edition
By :
In this chapter, we'll look at render modes. Before .NET 8, this used to be very simple: we had two, Blazor Server and Blazor WebAssembly. But more importantly, we had one or the other, never both. But with .NET 8, things changed. We got more combinations, which means greater complexity but also greater power and flexibility.
At the same time, we're seeing a trend across frontend frameworks. Many of them are moving back to server rendering in some form. For example, React has Next.js, and Angular has Angular Universal or Server-side Rendering (SSR). This is mostly about improving things like SEO and page load time. Instead of waiting for a full client app to boot up, the user gets a pre-rendered page from the server, and then the client app takes over.
Blazor is following the same idea. With the new render modes introduced in .NET 8, we can choose how our components are rendered: on the server, on the client, or a mix of both. This gives us better control...