run js in blazor code example Example: run js in blazor await JSRuntime.Current.InvokeAsync<string>("SayHelloJS", "Peter");