Either I am missing something or this documentation falls short: https://learn.microsoft.com/en-us/aspnet/core/blazor/components/generic-type-support?view=aspnetcore-8.0 All examples are about passing data, while I am interested in passing (directly) a component.
Say I have MyComponent and generic container MyContainer<TComponent>. Within the container .razor page I would like to write:
@typeparam TComponent where TComponent : ComponentBase ...<h1>This is my component</h1><TComponent></TComponent>with such code I am getting error "Found markup element with unexpected name TComponent".
Remark: directly means not using DynamicComponent.