Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
A counter component that allows incrementing and decrementing by a custom step value.
@page "/counter-step"
<h3>Counter with Step</h3>
<p>Value: @count</p>
<input type="number" @bind="step" />
<button @onclick="() => count += step">+</button>
<button @onclick="() => count -= step">-</button>
@code {
private int count = 0
private int step = 1
}Blazor is a Microsoft framework for building interactive web applications using C# and .NET, running client-side via WebAssembly or server-side via SignalR.
Origin & Creator
Blazor was created by Microsoft in 2018 to bring C# and .NET development to web browsers without requiring JavaScript.
Industrial Note
Blazor is primarily used in enterprise .NET ecosystems for full-stack C# development, reducing reliance on JavaScript and enabling shared code across client and server.