Search⌘ K
AI Features

Using the Razor Components

Understand how to include Razor components within Blazor WebAssembly applications by embedding them in page markup. This lesson guides you to add a Counter component on the Home page, rebuild your solution, and test the interactive component in the browser. Gain practical experience with component-driven architecture in Blazor.

We'll cover the following...

Razor components are used by including them in the markup of another component. We will add a Counter component to the “Home” page. We do this as follows:

  1. Return to Visual Studio.
  2. Open the Pages\Index.razor
...