Counter

Current count: 0

Explanation

In a Blazor Web App, some controls can exist purely client-side, such as this one. The C# hooks into button click events are handled via WASM by the client browser and entirely offloaded from the server. You will notice with each click, no communication occurs with the server, via standard REST calls or through SignalR messaging or a page reload, and yet the value updates dynamically within the page. Persistence of the value could be attained through placing the value in local storage or a cookie.

An unhandled error has occurred. Reload