Develop modern web UIs with Blazor Server and Blazor WebAssembly - now introducing Streaming and Static Server-Side Rendering (SSR) and flexible hosting models in .NET 8
Purchase of the print or Kindle book includes a free eBook in PDF format
Key Features- Create a production-ready Blazor application from start to finish
- Find out how, when, and why to use Blazor Server and Blazor WebAssembly, as well as Blazor Hybrid
- Explore crucial new coverage of streaming rendering, server-side rendering (SSR), flexible hosting models, and Blazor templates
Book DescriptionWeb Development with Blazor is your essential guide to building and deploying interactive web applications in C# - without relying on JavaScript.
Written by an early Blazor adopter and updated for .NET 8, this book takes you through the end-to-end development of an example app, helping you to overcome common challenges along the way. You'll pick up both Blazor Server and Blazor WebAssembly and discover cutting-edge tools to enrich your development experience.
Responding to evolving needs, this edition introduces flexible hosting models, allowing you to mix and match hosting approaches to create flexible and scalable Blazor applications. It also presents the new Blazor templates, which provide ready-made solutions to simplify and expedite development. You'll learn about the game-changing server-side rendering (SSR), a hybrid hosting model blending the strengths of Blazor Server and Blazor WebAssembly, as well as streaming rendering, a new technique that boosts the performance and user experience of Blazor apps.
By the end of this book, you'll have the confidence you need to create and deploy production-ready Blazor applications using best practices, along with a big-picture view of the Blazor landscape.
What you will learn- Understand how and when to use Blazor Server, Blazor WebAssembly, and Blazor Hybrid
- Learn how to build simple and advanced Blazor components
- Explore how Minimal APIs work and build your own API
- Discover how to use streaming rendering and server-side rendering (SSR)
- Mix and match different hosting models to create flexible and scalable Blazor apps
- Familiarise yourself with the new Blazor templates that simplify development
- Debug your Blazor Server and Blazor WebAssembly applications
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 either inside the web browser using Blazor WebAssembly, on the server using Blazor Server, or a combination of the two.
You'll need basic knowledge of C# and prior exposure to .NET web development before you get started; the book will guide you through the rest.
Table of Contents- Hello Blazor
- Creating Your First Blazor App
- Managing State - Part 1
- Understanding Basic Blazor Components
- Creating Advanced Blazor Components
- Building Forms with Validation
- Creating an API
- Authentication and Authorization
- Sharing Code and Resources
- JavaScript Interop
- Managing State - Part 2
- Debugging the Code
- Testing
- Deploying to Production
- Moving from, or Combining, an Existing Site
- Going Deeper into WebAssembly
- Examining Source Generators
- Visiting .NET MAUI
- Where to Go from Here