Discover blueprints that explore various components of Blazor, C#, and .NET to help you build web apps without learning JavaScript
Key Features
- Explore complete, easy-to-follow web projects using Blazor
- Build projects such as a weather app, expense tracker, and Kanban board with real-world applications
- Understand and work with Blazor WebAssembly effectively without spending too much time focusing on the theory
Book Description
Blazor WebAssembly makes it possible to run C# code on the browser without having to use JavaScript, and does not rely on plugins or add-ons. The only technical requirement for using Blazor WebAssembly is to work with a browser that supports WebAssembly which, as of today, all modern browsers do.
Blazor WebAssembly by Example is a project-based guide that helps you avoid the need to learn new JavaScript frameworks to build frontend web apps. You'll also understand how to use C# on both the frontend and the backend of your web apps.
You'll start by building simple stand-alone projects and progress to developing more advanced full-stack web apps. Throughout the book, you will come across examples exploring various aspects of the Blazor ecosystem such as templated components, the ASP.NET Web API, and Razor components. Later chapters will show you how to build projects that have real-world applications such as a modal dialog box, local storage services, task manager, and many more. You'll learn how to call JavaScript functions from .NET using JavaScript Interoperability. The book is designed in such a way that you can complete the projects in any order.
By the end of this book, you'll have learned how to use Blazor WebAssembly and have gained experience in building both simple stand-alone web apps and hosted web apps with SQL Server backends.
What you will learn
- Discover the power of the C# language for both server-side and client-side web development
- Explore the Blazor App project template to build your first Blazor Wasm application
- Use templated components and the Razor class library to build a modal dialog box
- Understand how to use JavaScript with Blazor WebAssembly
- Build a progressive web app (PWA) to enable native app-like performance and speed
- Understand dependency injection (DI) in .NET to build a shopping cart app
- Get to grips with .NET Web APIs by building a task manager app
Who This Book Is For
This book is for .NET web developers who are tired of constantly learning new JavaScript frameworks and wish to write web applications using Blazor WebAssembly, leveraging the power of .NET and C#. The book assumes beginner-level knowledge of the C# language, .NET framework, Microsoft Visual Studio, and web development concepts.