Skip to content

Instantly share code, notes, and snippets.



Last active Oct 7, 2020
What would you like to do?
Prerendering Blazor WASM components
@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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment