Jump to ratings and reviews
Rate this book

Web Development with Blazor: A practical guide to start building interactive UIs with C# 11 and .NET 7

Rate this book
Develop modern web UIs with Blazor Server and Blazor WebAssembly

Purchase of the print or Kindle book includes a free eBook in PDF format.

Key FeaturesCreate a production-ready Blazor application from start to finishLearn Blazor fundamentals, gain actionable insights, and discover best practicesFind out how, when, and why to use Blazor Server and Blazor WebAssembly, as well as Blazor HybridBook DescriptionBlazor 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.

What you will learnUnderstand the different technologies that can be used with Blazor, such as Blazor Server, Blazor WebAssembly, and Blazor HybridFind out how to build simple and advanced Blazor componentsExplore the differences between Blazor Server and Blazor WebAssembly projectsDiscover how Minimal APIs work and build your own APIExplore existing JavaScript libraries in Blazor and JavaScript interoperabilityLearn techniques to debug your Blazor Server and Blazor WebAssembly applicationsTest Blazor components using bUnitWho this book is forThis 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.

Table of ContentsHello BlazorCreating Your First Blazor AppManaging State – Part 1Understanding Basic Blazor ComponentsCreating Advanced Blazor ComponentsBuilding Forms with ValidationCreating an APIAuthentication and AuthorizationSharing Code and ResourcesJavaScript InteropManaging State Part 2Debugging the CodeTestingDeploy to ProductionM

360 pages, Kindle Edition

Published March 16, 2023

22 people are currently reading
7 people want to read

About the author

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
7 (46%)
4 stars
5 (33%)
3 stars
3 (20%)
2 stars
0 (0%)
1 star
0 (0%)
Displaying 1 - 4 of 4 reviews
Profile Image for Arthur.
96 reviews5 followers
May 3, 2023
In short, this is a book written by an expert for a future expert.
After having read and practised the Blazor WebAssembly by Example by Toi B. Wright (which is a fine book in its own right) I wanted to continue on the learning path and decided to look into Web Development with Blazor.
This book added a lot to my general knowledge where Blazor WebAssembly by Example left several common topics untouched, but excelled in covering creations of many typical applications and Blazor usage cases.
It felt right away that the author of Web Development with Blazor is an advanced web developer, and as a bonus I liked the author's writing style, occasional humour and advice.
Again, as oppose to how is the Blazor WebAssembly by Example is done, this book, instead of covering multiple projects, goes through only one - building a blog hosting engine. But covers it comprehensively and it resembles a monotonous typical developer's work on a large project, and is being done in an iterative manner with the end result having a complete product built.
The other tidbit is a list of technical requirements at the beginning of each chapter which I find being nice to have to ensure one can complete it.
The styling of the app is covered very well and I know that every project requires a lot of attention to.
Besides, the JavaScript interop is thoroughly covered - this is especially valuable for those who are relatively new to the web development.
Lastly, I can only think of one improvement: I wish the debugging part would come much earlier in the book.
If you want to master Blazor - this is your book, and by the way, there is a 25% discount at the moment to use at checkout at https://www.packtpub.com 25BLAZOFF
4 reviews1 follower
June 11, 2024
Great book to have a complete understanding of the Blazor Environment. Including MAUI (blazor MAUI).

I got a copy when I had almost no experience with Blazor and .NET (worked in a couple of components in a project and that's it). So this book came handy to deepen my knowledge.

The author covers almost everything (if not everything) you need to work in Blazor Apps. I recommend knowledge in .NET before reading the book. Even though Jimmy introduces the reader to the required .NET topics, would be easier to follow the book. More when facing problems during the setup because of the platform you're building your app for instance.

I personally read this book only until chapter 10 because of time. But I resume the book once I needed to build more complex stuff. The style of the author makes this possible since it's very well organised and provides with precise tips and annotations.
10 reviews
April 18, 2024
Introduce Blazor-Server and Blazor-WebAssembly in paralell(both with examples).
Very friendly to beginners to walk through a pragmatic project throughout the book.
But it doesn't go deeper in many aspects such as routing logic.
Anyway, it's a good introductory book.
Profile Image for Davin.
54 reviews
May 19, 2023
An enjoyable read,well worth the read whether it's your first look at Blazor or you want to brush up on your understanding of Blazor
Displaying 1 - 4 of 4 reviews

Can't find what you're looking for?

Get help and learn more about the design.