Add Razor Component templating for Minimal Api #60522
Labels
area-blazor
Includes: Blazor, Razor Components
✔️ Resolution: Answered
Resolved because the question asked by the original author has been answered.
question
Status: Resolved
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
There is no proper way to create server-rendered apps using minimal APIs. Despite all the hype about single-page applications and progressive web apps, server-rendered websites are still better for many use cases. However, unlike web APIs, server-rendered websites didn't undergo much modernization in .NET. In .NET 8, we got Blazor SSR, which, when combined with minimal APIs, can be a great way to create server-rendered websites.
Describe the solution you'd like
Razor components represent a modern approach for rendering HTML dynamically in .NET. While they can be utilized with minimal APIs via
RazorComponentResult
, this method lacks practicality. A well-established framework for creating websites using minimal APIs and razor components would be highly beneficial. Much like minimal APIs, it would attract new programmers.This is a prototype project demonstrating the advantages of this approach. However, it does not fully showcase the potential of this approach, as it is just some workarounds and it is quite verbose.
Additional context
No response
The text was updated successfully, but these errors were encountered: