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, and of course, we can also build amazing web-based applications with ASP.NET. MVC, Razor Pages, and Web API 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.NET's 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 web applications, this has always been the domain of JavaScript – but not anymore.
In this chapter, I’m going to introduce you to a revolutionary client-side framework called Blazor. Built on web standards, Blazor allows us to write rich, engaging user interfaces using C# and .NET. We’ll explore how Blazor can make your development process more efficient and raise your productivity levels, especially if you’re using .NET on the server as well. We’ll cover hosting models, an important concept to understand when starting out with Blazor. Next, we’ll begin to learn about components and the benefits of using them to build UIs. Finally, we’ll discuss the reasons why you should consider Blazor for your next project.