@page "/counter"

@using BlazorStateApp.Data;

@inject CounterState _counterState;

<PageTitle>Counter</PageTitle>

<h1>Counter</h1>

<p role="status">Current count: @_counterState.Count</p>

<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>

@code {
    private void IncrementCount()
    {
        _counterState.Count++;
    }
}
