Help us make content visible
- Tell us what search terms you used and how you searched docs.
I searched on
https://learn.microsoft.com/en-us/aspnet/core/overview?view=aspnetcore-10.0
for "RazorComponentResult". I could not find any Documentation results. And I found only Reference results.
- Tell us what docs you found that didn't address your concern.
Could not find any docs that have relevant information.
Describe the new topic
- Explain why this topic is needed.
RazorComponentResult is the most convenient way of returning templated HTML from minimal API endpoints. Users who want to use this feature need to know how to enable Razor Components in a Minimal API project. And how to pass parameters from the minimal API handler to the razor component.
- Suggest a location in the Table of Contents.
I am trying to build SSR web apps using Minimal APIs and Razor components. So, to me, this topic is important enough to have its own article under
Web apps > Blazor > Components
But if you decide to add a section to an existing article, it can be added to
Web apps > Blazor > Components > Integrate with MVC/Razor Pages (the article title will need to change)
or
APIs > Minimal APIs quick reference
- Write an abstract. In one short paragraph, describe what this topic will cover.
Returning Razor Components from Minimal API endpoints
- Create an outline for the new topic. We'll help review the outline and approve it before anyone writes a topic.
Enabling Razor Components in a Minimal API project
Creating the Razor Component
Returning RazorComponentResult from a Minimal API endpoint
Passing parameters from the Minimal API handler function to the Razor Component
Help us make content visible
I searched on
https://learn.microsoft.com/en-us/aspnet/core/overview?view=aspnetcore-10.0
for "RazorComponentResult". I could not find any Documentation results. And I found only Reference results.
Could not find any docs that have relevant information.
Describe the new topic
RazorComponentResult is the most convenient way of returning templated HTML from minimal API endpoints. Users who want to use this feature need to know how to enable Razor Components in a Minimal API project. And how to pass parameters from the minimal API handler to the razor component.
I am trying to build SSR web apps using Minimal APIs and Razor components. So, to me, this topic is important enough to have its own article under
Web apps > Blazor > Components
But if you decide to add a section to an existing article, it can be added to
Web apps > Blazor > Components > Integrate with MVC/Razor Pages (the article title will need to change)
or
APIs > Minimal APIs quick reference
Returning Razor Components from Minimal API endpoints
Enabling Razor Components in a Minimal API project
Creating the Razor Component
Returning RazorComponentResult from a Minimal API endpoint
Passing parameters from the Minimal API handler function to the Razor Component