@page "/counter"

Counter

Current count: @currentCount

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