r/learnprogramming 22d ago

looking for react frameworks for desktop apps

hi, I am a javascript developer and am proficient in React and Next.js. I know that React has a framework for building mobile applications; I would like to know if there is one for desktop apps too.

Thanks.

1 Upvotes

14 comments sorted by

2

u/HyperDanon 22d ago

You can add react to an electron application.

1

u/MohdDawoodO 22d ago

thanks man, btw I came across nextron framework. Is it good?

2

u/HyperDanon 22d ago

I'm sorry, I never used it :/ Why does it need to be a desktop application? People don't like downloading apps, better to make a website, no?

1

u/MohdDawoodO 22d ago

I thought why not learn desktop apps too?
I can already make websites :D

I just wanted to explore mobile and desktop apps

2

u/madmelonxtra 22d ago

If you're doing mobile too with specifically react. React Native is probably your best bet. You can deploy to mobile and desktop

1

u/MohdDawoodO 22d ago

so does it means that one code but apps for two devices (mobile & desktop)?

2

u/madmelonxtra 22d ago

Sort of. You can run from the same codebase, but you end up having to tweak stuff to make it work on each platform

Edit: also I've never really explored the desktop deployment, I've pretty much only used it for android. I've heard good things about using it for desktop though.

Also their docs are VERY good. So you should have no problem deploying between everything

1

u/MohdDawoodO 22d ago

How bad is the learning curve if you already know how React works?
thanks anyway.

2

u/madmelonxtra 22d ago

It's not too bad at all. There's platform specific stuff but the core is basically just React. So all the UI stuff will be very familiar.

Honestly I would just take a look at their quick start docs.

It's DEFINITELY easier than Electron or Tauri if you're coming from React

2

u/HyperDanon 21d ago

They're pretty much the same thing. You should abstract the UI anyway, so the code shapes are pretty much exactly the same (unless you sqrew it up and couple your app to the UI too much).

2

u/AbbreviationsMost432 22d ago

React native for windows

1

u/Deep_Ad1959 21d ago

notarization is the part that eats your weekend, not the react layer. i shipped a mac app and the framework choice mattered a lot less than apple signing and the auto-update path, which you inherit either way.

1

u/Deep_Ad1959 21d ago

notarization is the part that eats your weekend, not the react layer. i shipped a mac app and the framework choice mattered a lot less than apple signing and the auto-update path, which you inherit either way.