Files
SPT-Server-Build/Testing/TestMod/Components/Pages/TestModPage.razor
T
2025-10-10 15:25:15 +02:00

24 lines
439 B
Plaintext

@using Microsoft.AspNetCore.Components.Web
@using static Microsoft.AspNetCore.Components.Web.RenderMode
@rendermode InteractiveServer
@page "/test/page"
<h3>TestModPage</h3>
<img src="/TestMod/chomp.jpg" alt="Chomp!" />
<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++;
}
}