The IJSRuntime is an interface in C# that provides support for invoking JavaScript functions from C#. The IJSRuntime.Invoke method is used to invoke a JavaScript function synchronously.
Example 1:
// Invokes a JavaScript function with no parameters
await JSRuntime.InvokeAsync