
- 266 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Blazor WebAssembly by Example
About this book
Discover blueprints that explore various components of Blazor, C#, and.NET to help you build web apps without learning JavaScriptKey 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 theoryBook DescriptionBlazor WebAssembly makes it possible to run C# code on the browser instead of having to use JavaScript, and does not rely on plugins or add-ons. The only technical requirement for using Blazor WebAssembly is a browser that supports WebAssembly, which, as of today, all modern browsers do. Blazor WebAssembly by Example is a project-based guide for learning how to build single-page web applications using the Blazor WebAssembly framework. This book emphasizes the practical over the theoretical by providing detailed step-by-step instructions for each project. You'll start by building simple standalone web applications and progress to developing more advanced hosted web applications with SQL Server backends. Each project covers a different aspect of the Blazor WebAssembly ecosystem, such as Razor components, JavaScript interop, event handling, application state, and dependency injection. The book is designed in such a way that you can complete the projects in any order. By the end of this book, you will have experience building a wide variety of single-page web applications with.NET, Blazor WebAssembly, and C#.What you will learnโข Discover the power of the C# language for both server-side and client-side web developmentโข Use the Blazor WebAssembly App project template to build your first Blazor WebAssembly applicationโข Use templated components and the Razor class library to build and share 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 appWho this book is forThis 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.
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
Chapter 1: Introduction to Blazor WebAssembly
- Benefits of using the Blazor framework
- Differences between the two hosting models
- What is WebAssembly?
- Setting up your PC
Benefits of using the Blazor framework
.NET Framework
SPA framework
Razor syntax
Awesome tooling
Hosting models
Blazor Server

Table of contents
- Blazor WebAssembly by Example
- Foreword
- Preface
- Chapter 1: Introduction to Blazor WebAssembly
- Chapter 2: Building Your First Blazor WebAssembly Application
- Chapter 3: Building a Modal Dialog Using Templated Components
- Chapter 4: Building a Local Storage Service Using JavaScript Interoperability (JS Interop)
- Chapter 5: Building a Weather App as a Progressive Web App (PWA)
- Chapter 6: Building a Shopping Cart Using Application State
- Chapter 7: Building a Kanban Board Using Events
- Chapter 8: Building a Task Manager Using ASP.NET Web API
- Chapter 9: Building an Expense Tracker Using the EditForm Component
- Other Books You May Enjoy