React vs Blazor: What you said
by John Browne, on Feb 8, 2023 3:46:15 PM
Last week I promised to let you know what you--that is, at least some of you--told me what you thought about React or Blazor as a front-end replacement for Web Forms applications.
If you haven't read it, the TL;DR is I asked folks about their preferences and Blazor took the win by a large majority. I will say, however, that a considerable percentage were on the virtual fence: don't care, don't know, or not applicable.
What did folks say about their choices? Some of the more common or interesting points I heard below:
- React is more common, used everywhere and also by mega-large platforms (think Facebook and Twitter)
- React lets you code in Typescript (so basically Javascript) while Blazor is great for the C# crowd as they don't have to learn a new language
- React transpiles to Javascript so it runs natively in browsers, while Blazor uses web assembly. Web assembly doesn't always run perfectly as it's not native.
- "Concerned about Microsoft yanking the rug out on something like that..."
- "Blazor is about 5 years old...big question is will it be around in 10 years? You know how Microsoft gets all excited about new technology and then ditches it when something else catches their eye."
- "A distributed UI platform has been a moving target since the advent of the web...we are fine with either but going with Blazor. At some point we will diversify, but feel good with WASM being a standard."
- One person was happy with Blazor server, so thought he would go with Blazor for front-end as well.
- "I think you should convert over to React. In all my time working in observability space ... I saw Blazor exactly once (just last week) and not in any positive way. Meanwhile, half of the sites in the world are on React, for better or worse. Go for it."
- "We are moving forward with React for new projects as well as migrating to React from existing web applications that are on older tech stacks."
- "Most of the customers I work with would be fine getting to Blazor, and then over time adding new functionality as React or Angular, since it gets them off Windows, moves to the ASP.NET Core (which Blazor uses)."
- "By adopting Blazor (and its various flavours: Server, WASM, Hybrid,…), .NET developers have a single technology stack (.NET) to learn in order to build every kind of applications that they can think of."
- "I can totally see where you’re coming from with Blazor. It’s still so new, and without a long history of being supported by Microsoft, implementing it is risky. Given that, and the sheer scope of the implementations of React / Angular, it would make significantly more sense to me for you to go that route."
- "Microsoft is making big bets on Web Assembly and Blazor. Blazor components can now be used inside of Angular and React applications. Blazor can be used in Maui, and it will likely show up in other .NET frameworks as well in the future. So the answer really is if you are targeting a .NET audience, Blazor is the future of the front end on .NET. If you are targeting a more general audience then React seems like a valid way to go, but the javascript ecosystem evolves quickly and there is no guarantee that React is the future, vs something like Vue or whatever new technology comes next. "
- "We had initially done our backend work in asp.net core and our front end in React. The complexity of React made us re-evaluate what we were doing and switched all of our front-end web to Blazor."
- "For me, Blazor has been working great, and since I decided to integrate .NET MAUI with Blazor, it helped me reduce the need of code duplication, or use lots of different technologies."
- "Both are good. My recommendation would be Blazor. Devs coming from a web forms background will feel right at home."
And finally, this response: We don’t have any have legacy ASP.NET web forms apps. One thing in our favor.
There you have it, right from the source.
Got Web Forms? Want something better? Check out our offerings here.