2

Building Your First Blazor WebAssembly Application

Razor components are the building blocks of Blazor WebAssembly applications. A Razor component is a chunk of user interface that can be shared, nested, and reused. Razor components are ordinary C# classes and can be placed anywhere in a project.

Razor components.

Building blocks of Blazor apps.

Nestable magic.

In this chapter, we will learn about Razor components. We will learn how to use them, how to apply parameters, and how to create them. We will also become familiar with their life cycle and their structure. We will learn how to use the @page directive to define routing and we will learn how to use Razor syntax to combine C# code with HTML markup. Finally, we will introduce the Hot ...

Get Blazor WebAssembly By Example - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.