y4f/Pages/Counter.razor
zha19115 add0018b3d
Working Blazor app
* New Blazor Project created

* gitignore added

* Removed unneeded files
2023-01-17 16:39:03 +01:00

19 lines
314 B
Plaintext

@page "/counter"
<PageTitle>Counter</PageTitle>
<h1>Counter</h1>
<p role="status">Current count: @currentCount</p>
<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>
@code {
private int currentCount = 0;
private void IncrementCount()
{
currentCount++;
}
}