Prerender razor components in server hosted Webassembly

154 views Asked by At

I can only prerender a component razor into a .cshtml page if it is entered in the client.

<component type="typeof(MyApp.Client.Pages.Counter)" render-mode="WebAssemblyPrerendered" />

Why if I move mycomponent.razor to the server I can't use it?

<component type="typeof(MyApp.Server.Pages.Counter)" render-mode="ServerPrerendered" />

Thanks

0

There are 0 answers