@RenderSection Equivalent in Blazor?
问题 Razor pages have a mechanism where you can reference named sections in your layout, and then specify them in your pages that use that layout. For example, if your Layout (_Layout.cshtml) looks like this: @using... ... <!DOCTYPE html> ... <body> ... @RenderSection("modals", required: false) ... and then in your dashboard page, for example, you'd have: <div> ... </div> ... ... @section modals { <div class="modal-container>...</div> <div class="modal-container>...</div> } that would inject the