© Peter Himschoot 2019
Peter HimschootBlazor Revealedhttps://doi.org/10.1007/978-1-4842-4343-5_3

3. Components and Structure for Blazor Applications

Peter Himschoot1 
(1)
Melle, Belgium
 

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

In modern web development, we build applications by constructing them from components, which typically are 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 the principle of single responsibility) and are easier to understand, debug, and maintain. And of course, you can use ...

Get Blazor Revealed: Building Web Applications in .NET now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.