Summary
In this chapter, we explored Razor Pages, which allowed us to organize our web applications by page instead of controllers. Razor Pages leverages the same tools as MVC. Both technologies can also be combined and used together, allowing you to build parts of your application using Razor Pages and other parts using MVC.
Then we tackled partial views, which allow reusing parts of a UI and break down complex UI into smaller pieces. When we have complex logic, we can move from partial views to view components, a controller action-like view. We also tackled Tag Helpers to create reusable UI parts or extend existing HTML elements, or to just consume the built-in ones.
We explored multiple new C# 9 features, from top-level statements to target-typed new expressions, init-only properties, and the new record classes. We then dug deeper into record classes, which offer many possibilities as an immutable reference type.
Finally, we explored yet another way to divide UIs into smaller...