Files
Fellowship-Reference/Fellowship/Web/Pages/Counter.razor
T
2026-06-17 21:23:50 -04:00

19 lines
310 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;
private void IncrementCount()
{
currentCount++;
}
}