chapter one

1 Starting Your Blazor Journey

 

This chapter covers

  • Reasons to choose Blazor for your next application
  • Why components are a better way to build UIs
  • Hosting models in Blazor

We live in exciting times, as .NET developer’s life has never been better. We can create apps for any operating system be it Windows, Linux, iOS, Android or macOS. Of course, we can also build amazing web-based applications with ASP.NET. MVC, Razor Pages, and WebAPI have allowed us to create robust scalable and reliable systems for years, but there has long been a missing piece to the puzzle.

One thing all of ASP.NETs web solutions have in common is that they are server based. We’ve never been able to leverage the power of C# and .NET to write client-side applications, this has always been the domain of JavaScript – but not anymore.

1.1 Why choose Blazor for new applications?

1.2 Components, a better way to build UI

1.2.1 What is a component?

1.2.2 The benefits of a component-based UI

1.2.3 Anatomy of a Blazor component

1.3 Blazor, a platform for building modern UI with C#

1.3.1 Understanding hosting models

1.3.2 Blazor WebAssembly

1.3.3 Blazor Server

1.4 Summary