Jump to ratings and reviews
Rate this book

Blazor in Action

Rate this book
An example-driven guide to building reusable UI components and web frontends—all with Blazor, C#, and .NET.

In Blazor in Action , you will learn

Blazor + WebAssembly
Picking the right hosting model
Building reusable UI components
Building forms with validation
Integrating with JavaScript libraries
Securing your application
Testing your applications

Blazor in Action is a practical guide to building stunning UIs and client-side applications using C# and .NET. You’ll use the Blazor frontend framework to create a fun and exciting web application for plotting hiking routes. As you build up your new application, you’ll master the key features of Blazor, such as routing, forms and validation, and dynamic and reusable components. By the time you're done, you'll be ready to develop beautiful sites and apps that seamlessly execute your C# code natively in the browser.

The book is written to the most recent stable build of Blazor and seamlessly integrates fresh features from .NET 6.

Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.

About the technology
Create rich web frontends without relying on JavaScript. Microsoft’s Blazor framework uses WebAssembly to extend the ultra-popular ASP.NET platform. In Blazor, you can build interactive web components that run natively in the browser without plug-ins or transpilers. And because it’s C# end-to-end, it’s easy to share code between the server and your web UI.

About the book
Blazor in Action teaches you to create full-stack ASP.NET applications end-to-end in C#. You’ll start by learning to build Blazor web components, working through core topics like routing and forms. As you go, you’ll implement a hiking route web application that includes reusable code, integration with JavaScript libraries, and role-based security. To make sure your app is production ready, this practical book also covers state management, data persistence, and testing.

What's inside

Dynamic and reusable UI components
Sharing client and server code
Role-based security using Auth0
Persisting state using local browser storage

About the reader
For web developers with C# and .NET experience.

About the author
Chris Sainty has been a part of the Blazor community from the beginning. He’s an active blogger, open source developer, international speaker, and a Microsoft MVP.

Table of Contents

1 Starting your Blazor journey
2 Your first Blazor app
3 Working with Blazor’s component model
4 Routing
5 Forms and validation—Part 1: Fundamentals
6 Forms and validation—Part 2: Beyond the basics
7 Creating more reusable components
8 Integrating with JavaScript libraries
9 Securing Blazor applications
10 Managing state
11 Testing your Blazor application

380 pages, Paperback

Published July 5, 2022

7 people are currently reading
10 people want to read

About the author

Chris Sainty

2 books

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
13 (61%)
4 stars
4 (19%)
3 stars
2 (9%)
2 stars
2 (9%)
1 star
0 (0%)
Displaying 1 - 7 of 7 reviews
2 reviews
October 4, 2022
Great book to start or continue evolve with Blazor .I go back and discover and solves issues with help of all massiv info. Used the book to make a Blazor component for mapping with Openlayers.
I realy recommend this book
10 reviews
May 7, 2024
By now the best Blazor book I've ever read. It focuses on both principles behind the scenes and practical implementation examples. The whole book involves a single project and teaches you to improve it gradually, which is also very good.

The only little thing which may be frustrating is that all samples are for .NET6, you may need to search for new APIs of some 3rd-party libs if you're using .NET8. Anyway, changes are few and the author cannot control this.

I highly recommend this book for Blazor WebAssembly.
1 review
October 4, 2022
I purchased this book some months ago.

It takes the reader step by step through becoming familiar with the basics of Blazor.

It provides a good foundation to get going.

I have since been able to create my own model, view and controller to do things that Blazor was not directly able to do.

Have a go!
Profile Image for Jeff Patterson.
106 reviews6 followers
August 13, 2022
An excellent introduction to Blazor.
The example that goes along with the book is great and easy to follow.
Mr. Sainty has a deep depth of knowledge about Blazor and has an incredible knack for explaining and making the complex understandable.
1 review
October 3, 2022
Great book, great framework,

We are developing intranet applications, Blazor server is top choice for us.

Book is good for beginners, but also for experienced developers.

Matej
600 reviews11 followers
July 23, 2023
A good introduction to Blazor. I hoped for more practical advice on how to handle the shortcomings of Blazor, like SEO.
Displaying 1 - 7 of 7 reviews

Can't find what you're looking for?

Get help and learn more about the design.