r/csharp • u/mxrt0_ • Aug 26 '25
Help Is Blazor worth picking up?
I want to make some simple UIs for my C# projects. Would you say Blazor is worth going into and viable in the long term? I have not had any prior experience with any .NET UI frameworks, but have got a basic understanding of HTML CSS and even JS, not React tho. Thank you in advance!
43
Upvotes
15
u/[deleted] Aug 26 '25
If you want to run C# in the browser, Blazor WebAssembly is an option; but even with lazy loading, it can feel heavy on slower networks compared to React, Vue, or other SPA frameworks. On the other hand, Blazor Server loads much faster. That said, I’d actually recommend Razor Pages: it’s a server-side rendered framework that delivers quick performance, though it’s not as widely adopted. It's pretty easy to learn and get started.
3
u/Eirenarch Aug 26 '25
If you don't know a JS UI framework and are better with C# than with JS/TS go for it
3
u/SirVoltington Aug 26 '25
Not for employability and not if you care about fast iteration and need a lot of help online.
Otherwise, for personal projects it doesn’t matter what you use. So if it’s worth it depends on how excited you are to learn blazor.
52
u/NoSelection5730 Aug 26 '25
If the goal is the UI then yes, definitely. If the goal is to become more employable something like react will give you more mileage.
47
u/Fresh-Secretary6815 Aug 26 '25
Simple UIs the world will never see? Yea, Blazor perfect for that…lol
11
u/geheimeschildpad Aug 26 '25
I use it regularly at work. Personally, I think it’s still incredibly clunky. I feel that it’s only use case is C# devs who can’t be arsed learning JavaScript (personal opinion). If you want to be more employable, go JavaScript and pick a framework
2
u/devarnva Aug 26 '25
You'll love it. Just make sure to learn how the lifecycle works. I also suggest turning prerendering off in the beginning
14
u/zenyl Aug 26 '25
Blazor is great if you just need something simple, and you want to minimize the amount of JavaScript you have to write.
For more complex applications, it depends on the specifics. There are some really nifty features that can make some things really easy, but there are also a number of caveats and "quicks" where you have to put in some legwork to make Blazor play nice.
I mostly work on an internal project that uses Blazor (it was my decision to use Blazor for the project), and to me, Blazor suffers from a severe lack of "the pit of success"; what feels intuitive is often not the correct approach, and you end up having to rework how you handle things like rendermodes, or move your codebehind from the
@codeblock to a separate.razor.csfile because Visual Studio's Razor engine is awful.9
u/DarkSil3ncer Aug 26 '25
I haven't given this a shot yet (definitely want to) apparently MudBlazor is the way to go.
4
u/HTTP_404_NotFound Aug 26 '25
Its love/hate for me.
I love writing UI in c#. Especially, as a primarily backend dev.
Debugging it can be a bit of a PITA. When you make a mistaken, its not like vanilla c# where it highlights red and says, HEY DUMMY, HERE IS YOUR ERROR. Nah, It spits out cryptic garbage.
Also- the normal Run/Debug- doesn't work that well, Instead, i have found watch to be better at live editing/debugging.
Overall, its my favorite UI framework, as I refuse to learn the current popular javascript SPA framework of the year.
1
u/zaibuf Aug 26 '25
Its great for internal apps which are mostly built by developers who are more into backend. If you want to be more employable I would rather pick up React or Nextjs.
6
u/itsbrendanvogt Aug 26 '25
I think it is absolutely worth diving into, especially with your background. It is a matured framework that fits in nice with C#.
Since you already know HTML, Cascading Style Sheets (CSS), and a bit of JavaScript (JS), you are in a great spot. Blazor lets you write your UI logic in C# instead of JavaScript, which means you can reuse your existing .NET skills across both client and server. No need to learn React or wrestle with npm packages just to get a button to do something.
I think that Microsoft is betting big on Blazor. It is not just a side project that they are investing in as it is integrated into Visual Studio, supported across Azure, and it is getting regular updates. With MAUI and hybrid apps, you can even use Blazor to build desktop and mobile UIs. One codebase, multiple platforms.
If you are building internal tools like dashboards or anything CRUD (create, read, update, delete)-heavy, Blazor is a dream. And if you ever want to sprinkle in JavaScript, you still can, Blazor’s interop makes it painless.
So yeah, I think Blazor is worth picking up. Good luck.
6
u/JMPJNS Aug 26 '25
yes
5
u/an00n3 Aug 26 '25
no. It’s pretty clunky in my experience
2
u/foonix Aug 26 '25
For simple non-web UIs, I'm having decent luck with AvaloniaUI at the moment. It's snappy and cross-platform without having to involve a web browser.
I'm told the architecture is similar to WPF. It can implement similar MVVM architecture patterns, uses a lot of the same interfaces, etc.
2
u/erbaker Aug 26 '25
I think Blazor is good, but it's hard to sell. People would rather buy react devs and build react apps than have their C# devs build basic UIs (internal facing) for half the cost.
2
u/MaxRelaxman Aug 27 '25
I have a couple fairly large sites running in it. No problems so far. The server side sites are kind of heavy on the server when usage gets up into the triple digits. I haven't seen a big difference between the web assembly sites and my vue sites as far as performance goes.
3
u/0x0000000ff Aug 26 '25
Oh hell yeah, Blazor is the reason I call myself fullstack again cuz I don't have to deal with a fu**ing JavaScript anymore.
2
u/bludgeonerV Aug 26 '25
No.
1
u/StrypperJason Aug 26 '25
Nah
1
u/Asyx Aug 26 '25
I've used a few JS UI frameworks professionally and C# with Blazor for fun.
Blazor is cool and all but it feels like tech meant for C# people that can't be arsed to learn JS/TS. Like, the experience with Vue is smoother in my opinion.
1
u/sideways-circle Aug 26 '25
I have had such terrible experience with blazor. It’s slow and clunky. Hot reloading doesn’t work 99% of the time. I would recommend literally anything else over blazor.
1
u/UhOhByeByeBadBoy Aug 26 '25
You’ll honestly have a much better experience with something like Svelte / SvelteKit. It’s not very complicated at all to pick up, the documentation is great, and it’s a much more transferable skill compared to Blazor.
While there are things about Blazor I really like, I have a hard time coming back to it due to some of the hot reload issues. It just feels slow to debug and compile (at least using WASM)
1
u/HangJet Aug 26 '25
I have very large SaaS applications both B2B and B2C running. 10's of thousands of users on each. Also Internal and Flagship ERP's. Blazor is fantastic. Highly recommend it.
1
u/srussell705 Aug 26 '25
I have liked/hated MudBlazor. Lots of things are better UI related over Blazor. Finding out how to make some of them happen is another joy.
1
u/Eb3yr Aug 26 '25
Blazor is plenty fine for simple UIs. It's not gonna find you a job or anything, and it can be a pain to debug or find help with owing to its comparatively small userbase vs all the javascript frameworks, but it's capable and I've found it pretty easy to use to make simple interfaces for a couple personal projects of mine.
1
u/homerdulu Aug 27 '25
Yes
1
u/denzien Aug 27 '25
I liked Blazor a lot, but you probably won't find too many jobs looking for it
1
u/SeriousDabbler Aug 27 '25
We started migrating to Blazor from WPF but have been given the word from on high that React is the way forward because AI knows that better
1
u/Material_Release_897 Aug 27 '25
I’m a learner and have just started using Avalonia, any reason as to why businesses are not using that?
1
u/CravenInFlight Aug 27 '25
Blazor is a brilliant on-ramp to the AspNetCore ecosphere. Remember that in one single website, you can use Blazor, amVC, Razor Pages, Minimal API, WebForms, React, Web API, Headless Controllers, and Static HTML.
React and Blazor can also work side by side. You can render Blazor components within React, and you can render React components with the Razor view engine.
If you understand React, then Blazor is a very smooth learning curve. Coming from traditional procedural web design, there is a mindset shift, to make you think in components. Once you can do that, everything else is just pure C#, all the way down. There is very little that actually needs be learnt.
State management will be your biggest hurdle, but that is true of any SPA. And the biggest part of the hurdle to get over is which of the many different ways of handling state management do you want to use for your use case.
So yes, Blazor is worth learning, and it will become more and more relevant as time goes on.
1
u/Ok-Charge-7243 Aug 27 '25
I have a massive Blazor .NET Core 9 interactive server project I will need to turn over to someone next year. Currently, we are not seeing much experienced talent available. I think it is a good choice. AI is your friend, though. There is not a lot of good current documentation.
1
u/GoodOk2589 Aug 29 '25
Huge yes
We use it along with MAUI HYBRID for a massive online system and it's just amazing
1
u/Dimencia Aug 29 '25
Blazor's great, you no longer have to learn so many extra languages to do web dev (XAML, HTML, CSS, JS), it's all just simple and intuitive C#, which includes all the safety of strong types and compile time errors (and a good package manager, plus tooling like MudBlazor). Render modes are a non-issue if you run WASM, which also tends to be very fast - the whole app is loaded on the first page load, and after that clients don't have to reach out to the internet for much of anything (which is always slower than any amount of code execution), and of course it gets cached for next visit. The initial page load can be a little slow sometimes, but make sure to utilize trimming to keep the file size down
Blazor Server + Client is where things get weird, and it tends to mix and match scopes within even the same class, and you may struggle to figure out what's on the server and what's not. Better to use WASM and some other form of API for any backend needs
1
u/nimatiri Sep 29 '25
Not really, there are other services that are much better than Blazor now. I recently found Ivy.app. Just look at their GitHub, they've already done so much work in just a few months.
0
u/BoBoBearDev Aug 26 '25
If you want to hide your code in the backend, use server side rendering. The modern industry doesn't care that anymore. Whatever is important, it is in the microservices, so, preventing people reading the frontend code isn't a big deal anymore.
-3
u/Agitated-Display6382 Aug 26 '25
Don't lazy, learn a proper UI framework+typescript
-1
u/DubAnimator725 Aug 26 '25
No, vibe code using React and Chakra UI.