In this chapter, we saw that we always use the supplied base classes for view components, tag helpers, and tag helper components, as they make our life much easier.
It is preferred to use tag helpers over HTML helpers wherever possible and to write our own tag helpers as they are much easier to read than code. Tag helper components are very useful for inserting code automatically in specific locations. The <cache>, <distributed-cache>, and <environment> tag helpers are very interesting and will help you out a lot.
Then, we saw that partial views are preferable to view components when you have a template that you wish to render that is easier to code in HTML. View components are all about code and it's harder to implement HTML by string concatenation. On the other hand, view components let you pass parameters much more easily.
Razor class libraries are a new way of distributing static assets between projects. Make sure you...