mirror of
https://github.com/yummy4friends/y4f.git
synced 2024-11-14 05:42:46 +01:00
2581c2842f
* New Blazor Project created * gitignore added * Removed unneeded files
19 lines
314 B
Plaintext
19 lines
314 B
Plaintext
@page "/counter"
|
|
|
|
<PageTitle>Counter</PageTitle>
|
|
|
|
<h1>Counter</h1>
|
|
|
|
<p role="status">Current count: @currentCount</p>
|
|
|
|
<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>
|
|
|
|
@code {
|
|
private int currentCount = 0;
|
|
|
|
private void IncrementCount()
|
|
{
|
|
currentCount++;
|
|
}
|
|
}
|