/wasm-test

An example on using .NET 6 Blazor without the ASP.NET web components overhead for JS interop

Primary LanguageC#

To compile C# into WebAssemly and interop with JavaScript it's required to use Blazor WebAssembly ASP.NET framework, which is designed for SPA and contains lot of overhead in case you just want to use a C# library from JS.

This example shows the minimum setup required for the use case.

The key files to check for: