While developing ASP.NET Core web applications you often need to reuse parts of the user interface across many view or razor pages.
There are multiple options to address this requirement.
1.Reuse UI With Partial Views In ASP.NET Core
2.Reuse UI With View components in ASP.NET Core detail