@page "/"
@inject IJSRuntime js
<p>
Open browser dev tools (F12) and select the console tab.
Click the button to view test output.
</p>
<button @onclick="Test">Test</button>
@code {
async void Test() {
var obj = await js.InvokeAsync<Object>("Read", 100);
await js.InvokeAsync<Object>("Write", obj);
}
}