Components and Structure for Blazor Applications
摘要
In modern web development, we build applications by constructing them from components, which typically are again built from smaller components. A Blazor component is a self-contained chunk of user interface. Blazor components are classes built from Razor and C# with one specific purpose (also known as Single Responsibility Principle) and are easier to understand, debug, and maintain. And of course, you can re-use the same component in different pages, which can be a huge advantage.