-
Book Overview & Buying
-
Table Of Contents
Web Development with Blazor - Fourth Edition
By :
In this chapter, we learned a lot about Razor syntax, something we will use throughout the rest of the book. We explored how components are structured, how code and markup can live together, and when it makes sense to move code into a code-behind file. We also looked at dependency injection, render modes, lifecycle events, and parameters, all core building blocks when working with Blazor.
The key takeaway from this chapter is that everything in Blazor is a component. Pages are components. Reusable UI parts are components. Even layouts are components. Once we understand how components work, we understand how Blazor works.
We also saw how render modes affect behavior and why it matters whether we run on the server or in WebAssembly. That knowledge will become more important as we continue building features and start mixing hosting models.
Finally, we built our first real component that talks to our repository and shows actual data from the database. That is a big step. We moved...