React taught a generation of developers to think in components. Blazor WebAssembly takes that same idea and lets you write the components in C# and Razor , compiled to run directly in the browser. No JavaScript required.
In this walkthrough we'll:
Part A: Create a Blazor WASM app, call a REST API from it, then build a small book shop with a product catalog, a shopping basket and a checkout form. Along the way we'll answer the "how does this actually work?" questions: routing, parameters, dependency injection and state lifetime.
Part B: Add "remove from basket" using EventCallback (child → parent messaging), and show the author on every book.
Part C: Build a full CRUD client (list, view, create, edit, delete) for a pizza REST API, entirely in Blazor.
Prerequisites
.NET 10 SDK ( dotnet --version )
Visual Studio 2026 or VS Code with the C# Dev Kit
Trust the dev HTTPS certificate once per machine:
dotnet dev-certs https --trust
Enter fullscreen mode
Exit fullscreen mode
Part A: The shop
A1.…