
Web Development with Blazor
An in-depth practical guide for .NET developers to build interactive UIs with C#, 2nd Edition
- 360 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Web Development with Blazor
An in-depth practical guide for .NET developers to build interactive UIs with C#, 2nd Edition
About this book
Develop modern web UIs with Blazor Server and Blazor WebAssemblyPurchase 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• Find 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 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 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.
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
Table of contents
- Preface
- 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
- Deploy to Production
- Moving from, or Combining, an Existing Site
- Going Deeper into WebAssembly
- Examining Source Generators
- Visiting .NET MAUI
- Where to Go from Here
- Other Books You May Enjoy
- Index