A practical guide to building interactive UIs with C# 12 and .NET 8
366 pages
13 hours of reading
Dive into web development with Blazor in this essential guide to creating and deploying production-ready Blazor apps, updated to bring you up to speed with the new features and enhancements introduced in .NET 8.
A practical guide to start building interactive UIs with C# 11 and .NET 7
360 pages
13 hours of reading
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 Features:
- Create a production-ready Blazor application from start to finish
- Learn Blazor fundamentals, gain actionable insights, and discover best practices
- Understand when and why to use Blazor Server, Blazor WebAssembly, and Blazor Hybrid
Book Description:
Blazor is essential for building interactive web apps without JavaScript, though it has a learning curve. This updated edition, featuring the latest code in .NET 7 and C# 11, helps beginners overcome challenges and learn best coding practices. You’ll explore the full capabilities of Blazor Server and Blazor WebAssembly, centered around a sample project—a blog engine. You'll learn to create Blazor projects, understand Razor syntax, validate forms, and build custom components. The book also covers source generators, delves into Blazor WebAssembly with ahead-of-time compilation, and includes a new chapter on transitioning components from existing JavaScript (Angular, React) or MVC-based sites to Blazor. Additionally, it demonstrates how to use Blazor Hybrid with .NET MAUI for cross-platform applications.
What You Will Learn:
- Different technologies compatible with Blazor
- Building simple and advanced Blazor components
- Differences between Blazor Server and Blazor WebAssembly
- Creating Minimal APIs and using Jav
A hands-on guide for .NET developers to build interactive UIs with C#
310 pages
11 hours of reading
Develop modern web UIs quickly with server-side Blazor and Blazor WebAssembly Blazor is an essential tool if you want to build interactive web apps without JS, but it comes with its own learning curve. Web Development with Blazor will help you overcome most common challenges developers face when getting started with Blazor and teach you the best coding practices. You'll start by learning how to leverage the power of Blazor and explore the full capabilities of both Blazor Server and Blazor WebAssembly. Then you'll move on to the practical part, which is centred around a sample project – a blog engine. This is where you'll apply all your newfound knowledge about creating Blazor Server and Blazor WebAssembly projects, the inner working of Razor syntax, and validating forms, as well as creating your own components. You'll learn all the key concepts involved in web development with Blazor, which you'll also be able to put into practice straight away. By showing you how all the components work together practically, this book will help you avoid some of the common roadblocks that novice Blazor developers face and inspire you to start experimenting with Blazor on your other projects. When you reach the end of this Blazor book, you'll have gained the confidence you need to create and deploy production-ready Blazor applications. If you're a .NET web or software developer who wants to build web UIs using C#, then this book is for you. You'll need intermediate-level web-development skills and basic knowledge of C# before you get started; the book will guide you through the rest.