What is Blazor?
- Blazor is a Single Page Application development framework
- Blazor is a free and open-source web framework that enables developers to create web apps (SPA) using C# and HTML
- The name Blazor is a combination/mutation of the words Browser and Razor (the .NET HTML view generating engine)
- Blazor is a new client-side UI framework from the ASP.NET team
- Server-side Blazor (Blazor server)
- Client-side Blazor (Blazor WebAssembly)
Server side blazor
Blazor can run client logic on the server. Client UI events are sent back to the server using SignalR. Once execution completes, the required UI changes are sent to the client and merged into the DOM.
- Application is built on top of ASP.NET Core as Razor components and uses SignalR.
Client side blazor
Client-side C# code directly in the browser, using WebAssembly. Because it’s real .NET running on WebAssembly, you can re-use code and libraries from server-side parts of your application.
- Application is built on top of ASP.NET Core as Razor components
- Application is run in browser itself as WebAssembly
- Most modern browser supports WebAssembly (wasm)