@page "/counter" @using HopFrame.Web.Components.Layout @rendermode InteractiveServer @layout HopFrameLayout Counter

Counter

Current count: @currentCount
Click me @code { private int currentCount = 0; private void IncrementCount() { currentCount++; } }