@page "/counter" @rendermode InteractiveServer Counter

Counter

Current count: @currentCount

@code { private int currentCount = 0; private void IncrementCount() { currentCount++; } private void DecrementCount() { currentCount--; } }