
Web Development with Blazor: A practical guide to building interactive UIs with C# 12 and .NET 8 3rd Edition
Author(s): Jimmy Engström (Author)
- Publisher: Packt Publishing
- Publication Date: 29 April 2024
- Edition: 3rd
- Language: English
- Print length: 366 pages
- ISBN-10: 1835465919
- ISBN-13: 9781835465912
Book Description
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 Description
Web 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 for
This 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
Editorial Reviews
Review
“Jimmy has seamlessly merged everything new into his well-proven teaching structure and has been effective in getting readers to go with Blazor. This book genuinely gets into the details you need to know.”
Steve Sanderson, Developer/Architect at Microsoft and Original Creator of Blazor
“From Blazor Server to Blazor WebAssembly, this book guides you through the complete development of an example app, tackling common challenges head-on.”
Denis Voituron, Principal Software Engineer at Microsoft
“Filled with all kinds of knowledge from a person who has been running Blazor in production for years and now updated for C# 12 and .NET 8, this book is a real must-read.”
Gerald Versluis, Senior Software Engineer at Microsoft
“Navigating through the different chapters of the book, you will learn how to create Blazor Server and Blazor WebAssembly projects from scratch.”
Aram Tchekrekjian, Microsoft MVP
“This 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.”
Stefan Dokic, Microsoft MVP
About the Author
Jimmy Engström has been developing ever since he was 7 years old and got his first computer. He loves to be on the cutting edge of technology, trying new things. When he got wind of Blazor, he immediately realized its potential and adopted it when it was in beta. He has been running Blazor in production since it was launched by Microsoft. His passion for the .NET industry and community has taken him around the world, speaking about development. Microsoft has recognized this passion by awarding him the Microsoft Most Valuable Professional award 10 years in a row.
Wow! eBook


