Skip to content

Instantly share code, notes, and snippets.

@jonhilt

jonhilt/Index.cshtml

Last active Oct 7, 2020
Embed
What would you like to do?
Prerendering Blazor WASM components
@page
@using PracticalAspNet.UI.Client.Pages
@model IndexModel
@{
ViewData["Title"] = "Home page";
}
<div class="text-center">
<script src="_framework/blazor.webassembly.js"></script>
<component type="typeof(Counter)" render-mode="WebAssemblyPrerendered"/>
<!-- works if I add this -->
<div id="app" class="d-none"></div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment