@page "/counter"
@using HopFrame.Web.Components
@rendermode InteractiveServer
Counter
Counter
Current count: @currentCount
@code {
private int currentCount = 0;
private string[] permissions = ["web.counter"];
private void IncrementCount() {
currentCount++;
}
}