Last active
October 7, 2020 10:54
-
-
Save jonhilt/88fffb7d9ce8de0997d8024910c63957 to your computer and use it in GitHub Desktop.
Prerendering Blazor WASM components
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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