Using Razor Components in an ASP.NET Core MVC Application
Lee Timmins
2nd Oct 2025
Comments
In an ASP.NET Core MVC application, you can not only render Razor components within views using the component tag helper, but also return Razor components directly from MVC actions.
In this post, we’ll walk through an example of returning a Razor component from an MVC action and address the issues that come up along the way.