Web Development with Blazor, 2e

Blazor is an essential tool if you want to build interactive web apps without JavaScript, but it has a learning curve. Updated with the latest code in .NET 7 and C# 11 and written by someone who adopted Blazor early, this book will help you overcome the challenges associated with being a beginner with Blazor and teach you the best coding practices.

You’ll start by learning how to leverage the power of Blazor and exploring the full capabilities of both Blazor Server and Blazor WebAssembly. Then you'll move on to the practical part, centered around a sample project – a blog engine. You'll apply all your newfound knowledge about creating Blazor projects, the inner workings of Razor syntax, validating forms, and creating your own components.

This new edition also looks at source generators, dives deeper into Blazor WebAssembly with ahead-of-time, and includes a dedicated new chapter demonstrating how to move components of an existing JavaScript (Angular, React) or MVC-based website to Blazor or combine the two. You’ll also see how to use Blazor (Hybrid) together with .NET MAUI to create cross-platform desktop and mobile applications.

When you reach the end of this book, you'll have the confidence you need to create and deploy production-ready Blazor applications, and you'll have a big-picture view of the Blazor landscape.

Type
ebook
Category
publication date
2023-03-16
what you will learn

Understand the different technologies that can be used with Blazor, such as Blazor Server, Blazor WebAssembly, and Blazor Hybrid
Find out how to build simple and advanced Blazor components
Explore the differences between Blazor Server and Blazor WebAssembly projects
Discover how Minimal APIs work and build your own API
Explore existing JavaScript libraries in Blazor and JavaScript interoperability
Learn techniques to debug your Blazor Server and Blazor WebAssembly applications
Test Blazor components using bUnit

no of pages
360
duration
720
key features
Create a production-ready Blazor application from start to finish * Learn Blazor fundamentals, gain actionable insights, and discover best practices * Find out how, when, and why to use Blazor Server and Blazor WebAssembly, as well as Blazor Hybrid
approach
Complete with step-by-step explanations of essential concepts and practical examples, you will begin by learning the different hosting models and how they work under the hood. Then you’ll be introduced to different key concepts that you will be able to put into practice straight away.
audience
This book is for .NET web developers and software developers who want to use their existing C# skills to build interactive SPA applications running either inside the web browser using Blazor WebAssembly, or on the server using Blazor Server.

You’ll need intermediate-level web-development skills, basic knowledge of C#, and prior exposure to .NET web development before you get started; the book will guide you through the rest.
meta description
Develop modern web UIs with Blazor Server and Blazor WebAssembly
Purchase of the print or Kindle book includes a free eBook in PDF format.
short description
Blazor is the new way to build interactive web apps using C# and .NET. This Blazor C# book starts by helping you discover Blazor and its features for building your first application, which will show you how Blazor can be used on the client-side, server-side, and cross-platform. This new edition covers the latest updates, including .NET 7 and C# 11.
subtitle
A practical guide to start building interactive UIs with C# 11 and .NET 7
keywords
blazor; C#; .NET; blazor webassembly; blazor server; blazor web development; blazor books; web design; web programming; web application development; blazor components; blazor state management ; Blazor Hybrid; .NET MAUI; cross-platform
Product ISBN
9781803241494