© Peter Himschoot 2020
P. HimschootMicrosoft Blazorhttps://doi.org/10.1007/978-1-4842-5928-3_3

3. Components and Structure for Blazor Applications

Peter Himschoot1 
(1)
Melle, Belgium
 

In the previous chapter on data binding, you have built a single monolithic application with Blazor. After a while, this will become harder and harder to maintain.

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

Get Microsoft Blazor: Building Web Applications in .NET 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.