This chapter covers ASP.NET Core's reusable components. By reusable, I mean that they can potentially be used across different projects—or in the same project in different places—with different parameters, yielding possibly distinct results. In this chapter, we will cover view componentsandtag helpers (which are new to ASP.NET Core), tag helper components (new to ASP.NET Core 2), and our old friend, partial views.
In this chapter, we will cover the following topics:
- View components
- Tag helpers
- Tag helper components
- Partial views
- Razor class libraries
- Adding external contents
Technical requirements
In order to implement the examples introduced in this chapter, you will need the .NET Core 3 SDK and a text editor. Of course, ...