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

user9202791 picture user9202791 · May 11, 2018 · Viewed 26k times · Source

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?

Answer

MartinH picture MartinH · May 11, 2018

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.