Log to the Console in Blazor

Console.WriteLine() in C# is just like console.log in JavaScript.

@page "/consoleexample"

@code {
	protected override async Task OnInitializedAsync()
	{
		await base.OnInitializedAsync();
		Console.WriteLine("Hello, World!");
	}
}