20

Building Web User Interfaces Using Blazor

This chapter is about using Microsoft Blazor to build user interfaces for the web.

I will describe the different flavors of Blazor and their pros and cons. You will learn how to build Blazor components that can execute their code on the web server or in the web browser. When hosted with Blazor Server, it uses SignalR to communicate updates needed to the user interface in the browser. When hosted with Blazor WebAssembly, the components execute their code in the client and must make HTTP calls to interact with the server.

In this chapter, we will cover the following topics:

  • Understanding Blazor
  • Building components using Blazor Server
  • Building components using Blazor WebAssembly

Understanding Blazor ...

Get C# 9 and .NET 5 – Modern Cross-Platform Development - Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.