Introduction to Blazor WebAssembly
Blazor WebAssembly is Microsoft’s new single-page application (SPA) framework for building interactive web applications on .NET Framework. Since it is built on .NET Framework, Blazor WebAssembly allows you to run C# code on the client as well as the server. Therefore, instead of being forced to write JavaScript on the client, we can now use C# everywhere.
Blazor is red hot!
Run C# on the client.
Goodbye, JavaScript!
In this chapter, we will explain the benefits of using the Blazor framework. We will introduce the three different Blazor hosting models and discuss both the advantages and disadvantages of each of them. Also, we will discuss the goals of WebAssembly and share where it is supported. Finally, we will guide you through the process of setting up your computer to complete the projects in this book.
In this chapter, we will cover the following topics:
- Benefits of using the Blazor framework
- Hosting models:
- Blazor Server
- Blazor Hybrid
- Blazor WebAssembly
- Differences between the Blazor hosting models
- What is WebAssembly?
- Setting up your PC