Skip to content

Instantly share code, notes, and snippets.

View MackinnonBuck's full-sized avatar

Mackinnon Buck MackinnonBuck

View GitHub Profile
@MackinnonBuck
MackinnonBuck / Counter.razor
Created November 21, 2023 23:11
Example: Define interactivity on pages shared between Blazor Web and Blazor Hybrid apps
@* In project 'RazorClassLibrary' *@
@page "/counter"
@attribute [InteractivePage] @* <-- Marks the page as interactive *@
<PageTitle>Counter</PageTitle>
<h1>Counter</h1>
<p role="status">Current count: @currentCount</p>