Files
nikolaj.eskildsen/Components/Pages/Counter.razor
T
10503092 1219f319e7
CICD-PSU/nikolaj.eskildsen/pipeline/head This commit looks good
first commit
2026-10-09 11:01:40 +02: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++;
}
}