Web Development with Blazor: A practical guide to building interactive UIs with C# 14 and .NET 10
Synopsis
Master Blazor's evolving render modes, hosting models, and observability features with practical projects and real-world architecture. Build confidently for production with .NET 10 and C# 14
Key Features
Dedicated, side-by-side coverage of Blazor render modes without forcing them into a single project
Updated for .NET 10 LTS with first-class coverage of .NET Aspire and modern observability
Project structures and examples designed around real production constraints, not demos
Book DescriptionBlazor has grown, and with that growth comes a simple question: How should we build Blazor apps today?
This book answers that question by building a real application step by step. We start with what Blazor is, why it is not just WebAssembly, and how the different hosting models fit together. From there, we create components, manage state, build forms with validation, add APIs, secure the app with authentication and authorization, use JavaScript when it makes sense, and test our components with bUnit.
We also look at the key aspects of modern Blazor development, including render modes, server-side rendering, WebAssembly, Aspire, OpenTelemetry, debugging, deployment, and how to work with existing sites when starting from scratch is not an option.
The goal is not only to copy code but also to understand why we choose one approach over another. Should this be SSR, Server, WebAssembly, or Auto? Where should interactivity live? What changes when the code runs in the browser? We answer those questions without making things more complicated than they need to be.
Whether you're new to Blazor or upgrading from an earlier edition, the fourth edition brings the book up to date with .NET 10, Aspire, tracing, metrics, testing, and modern Blazor app development.
Own a raccoon cover already? The collection must continue. The raccoons insist.What you will learn
Understand how Blazor works and when to use each render mode
Build simple and advanced Blazor components with confidence
Structure applications to separate concerns and support multiple hosting models
Implement authentication and authorization using modern .NET patterns
Improve performance with caching and rendering optimizations
Use OpenTelemetry to gain insights into application behavior and performance
Build, run, and manage applications using Aspire
Who this book is forThis book is for .NET web developers and software developers who want to use their existing C# skills to build interactive web applications running in the browser with Blazor WebAssembly, on the server with Blazor Server, or using a combination of both.
You’ll need a basic understanding of C# and some prior exposure to .NET web development. The book will guide you through the rest.
Publisher information
- Publisher: Packt Publishing Limited
- ISBN: 9781806112890
- Number of pages: 458
- Dimensions: 235 x 191 mm
- Languages: English


















