@page "/jstostaticnetwasm" @using System.Runtime.InteropServices.JavaScript

This is a demo how to call .NET from JavaScript

@code { protected override async Task OnInitializedAsync() { await JSHost.ImportAsync("jstonet", "../JSInteropSamples/JSToStaticNET.razor.js"); } }