Original author(s) | Microsoft |
---|---|
Developer(s) | .NET Foundation |
Initial release | 2018 |
Repository | github |
Operating system | Linux, macOS, Windows |
Included with | ASP.NET Core |
Type | Web framework |
License | Apache License 2.0 |
Website | blazor |
Blazor is a free and open-source web framework that enables developers to create web apps using C# and HTML.[1][2][3][4][5] It is being developed by Microsoft.
Five different editions of Blazor apps have been announced.
Microsoft plans to release Blazor PWA and Blazor Hybrid editions. The former supports progressive web apps (PWA). The latter is a platform-native framework (as opposed to a web framework) but still renders the user interface using web technologies (e.g. HTML and CSS). A third, Blazor Native – platform-native framework that renders a platform-native user interface – has also been considered but has not reached the planning stage.[6]
Since version 5.0, Blazor has stopped working on some old web browsers, including Internet Explorer and the legacy version of Microsoft Edge.[8]
The following example shows how to implement a simple counter that can be incremented by clicking a button:
<h1>Blazor code example</h1>
<p>count: @count</p>
<button class="btn btn-primary" @onclick="IncCount">Click to increment</button>
@code {
private int count = 0;
private void IncCount()
{
count++;
}
}
By: Wikipedia.org
Edited: 2021-06-18 19:49:05
Source: Wikipedia.org