summary refs log tree commit diff
path: root/GitRepoViewer/Pages/Counter.razor
diff options
context:
space:
mode:
Diffstat (limited to 'GitRepoViewer/Pages/Counter.razor')
-rw-r--r--GitRepoViewer/Pages/Counter.razor19
1 files changed, 19 insertions, 0 deletions
diff --git a/GitRepoViewer/Pages/Counter.razor b/GitRepoViewer/Pages/Counter.razor
new file mode 100644
index 0000000..372905f
--- /dev/null
+++ b/GitRepoViewer/Pages/Counter.razor
@@ -0,0 +1,19 @@
+@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++;
+    }
+
+}
\ No newline at end of file