Blazor lets you build interactive web UIs using C# instead of JavaScript. Blazor apps are composed of reusable web UI components implemented using C#, HTML, and CSS. Both client and server code is written in C#, allowing you to share code and libraries. Blazor is a feature of ASP.NET, the popular web development framework that extends the .NET developer platform with tools and libraries for building web apps. Blazor can run your client-side C# code directly in the browser, using WebAssembly. Because it's real .NET running on WebAssembly, you can re-use code and libraries from server-side parts of your application. Alternatively, Blazor can run your client logic on the server. Client UI events are sent back to the server using SignalR - a real-time messaging framework. Once execution completes, the required UI changes are sent to the client and merged into the DOM. Blazor uses open web standards without plug-ins or code transpilation.
Features
- Blazor works in all modern web browsers, including mobile browsers
- Code running in the browser executes in the same security sandbox as JavaScript frameworks
- Blazor code executing on the server has the flexibility to do anything you would normally do on the server
- Blazor apps can use existing .NET libraries, thanks to .NET Standard
- .NET Standard allows the same code and libraries to be used on the server, in the browser, or anywhere you write .NET code
- Your C# code can easily call JavaScript APIs and libraries