Blazor page components (2)

In the Balzor application, components are used to build user interfaces, such as pages, windows, and dialog boxes.

Components

Using a combination of C # and HTML tags, the Blazor component is called a Razor component, and the file name ends with (.razor).

1. As shown below, the screenshot after creating the Blazor application template in VisualStudio shows the razor file defined in the Page folder.

Note: All Blazor components must start with an uppercase character, otherwise they are invalid.

Guess you like

Origin www.cnblogs.com/zh7791/p/12723122.html