.Net Blazor benefits over Angular , React or other javascript framework

asp.net-core blazor c#

Question

What is the main feature of Microsoft's .Net Blazor? Can we use it in place of React or Angular? Will Blazor provide all the tools which are provided in Angular or React?

Accepted Answer

In my opinion the main advantages of using Blazor instead of React or Angular are:

  • C# and ASP.NET can be used both on the client and server-side. Currently the cost of switching is high (imho) and removing the need for JavaScript libraries would reduce this. It is more or less the same argument for using Node.js on the server-side. But in the case of Blazor you remove JavaScript in favour for C# and ASP.NET. Who does not like that? :)

  • You can use shared models (or even functional code) that will reduce duplicate code, will save time and prevent mistakes caused by client-server model mismatch.

It is correct that Blazor and Angular/React are in fact not the same thing. Blazor generates WebAssembly and React/Angular do not (currently). However, the first two arguments are still valid if you are thinking of replacing Angular/React with Blazor. Just keep in mind that Blazor is still not fully supported and does not have all the features that the Javascript libraries have.




Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why