Overflow/Overflow.Web.Client/Pages/Counter.razor
Andy Pack 35180a331f
Some checks are pending
ci / build (8.0.x) (push) Waiting to run
ci / build-Docker (push) Blocked by required conditions
adding wasm project
2024-06-09 18:43:44 +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++;
}
}