test274/Components/Pages/Counter.razor
greyn c4c375a440
Some checks are pending
gitea.arg.rip/test274/pipeline/head Build queued...
Initial commit
2025-03-24 22:59:29 -04:00

20 lines
363 B
Plaintext

@page "/counter"
@rendermode InteractiveServer
<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++;
}
}