Suppose you are working on an ASP.NET Core web application. To avoid havingn the views and layouts grow massively, you plan to separate some parts of these to independent components. This way you don’t repeat code you wrote once. You find view components and tag helpers, but which one should you use?

The Difference Between View Components and Tag Helpers

It’s important to understand what is what before doing any work.

Suppose you are working on an ASP.NET Core web application. To avoid havingn the views and layouts grow massively, you plan to separate some parts of these to independent components. This way you don’t repeat code you wrote once. You find view components and tag helpers, but which one should you use?
The Difference Between View Components and Tag Helpers
It’s important to understand what is what before doing any work. […]