Add interactive element to test page
This commit is contained in:
@@ -4,6 +4,17 @@
|
||||
|
||||
<img src="/TestMod/chomp.jpg" alt="Chomp!" />
|
||||
|
||||
@code {
|
||||
<h3>Counter Test</h3>
|
||||
|
||||
<p>Current count: @count</p>
|
||||
|
||||
<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>
|
||||
|
||||
@code {
|
||||
private int count = 0;
|
||||
|
||||
private void IncrementCount()
|
||||
{
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user