Menu

Blazor WebAssembly End to End: A Book Shop, Shared State, EventCallback and a Full CRUD Client (No JavaScript)
📰

Blazor WebAssembly End to End: A Book Shop, Shared State, EventCallback and a Full CRUD Client (No JavaScript)

DEV Community: blazor·FaithInErrorsZORO·3 days ago
#LS4q19WV
#devtoblazor#devto#dev#app#enter
Long article (5077 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.