pre language="razor">&lt;button type="button" class="btn btn-primary" @onclick="IncrementCount"&gt;
    Handle with C# (@currentCount clicked)
&lt;/button&gt;

@code {
    private int currentCount = 0;

    private void IncrementCount()
    {
        currentCount++;
    }
}</pre>
<hr class="my-4" />
<h1>Creating and Handling Blazor Events</h1>
<p>Just like HTML events, a Blazor event also consists of 2 parts: the name and the argument. However, unlike HTML events, which are predefined by the browser, Blazor