r/reactjs • • May 06 '19

Microsoft launches React Native for Windows

https://techcrunch.com/2019/05/06/microsoft-launches-react-native-for-windows/
510 Upvotes

91 comments sorted by

View all comments

Show parent comments

17

u/Earhacker May 06 '19

Electron ain't great, though. I mean it works if all you need is an app that loads a web page (e.g. Slack) but it doesn't work if your app needs to do more than that (e.g. Spotify). This seems to be aimed at "real" apps, not just web wrappers.

33

u/swyx May 06 '19 edited May 06 '19

eh. you can do all node stuff in electron. use native modules for stuff you cant do in js. only reason Spotify isnt in Electron is probably because it was written before Electron. there are bad ways to write Electron, which makes it slow, but VScode indicates this isnt a necessary outcome of Electron.

edit: /u/Earhacker knows more than i do, i will concede i am wrong but am leaving this up.

37

u/Earhacker May 06 '19 edited May 07 '19

Spotify used to use Electron. They abandoned it for Chromium Embedded Framework because it worked better with how their dev team works (tribes building micro-frontends). Then they moved to a custom C++ framework.

VS Code uses a very thin Electron wrapper around C# components that were built for Visual Studio. They really are just piggy-backing on Electron for the cross-platform support; something that Microsoft has never done well.

I'm not an Electron hater. I've used it and like it. But VS Code and Spotify are not typical Electron apps. Slack and Discord are probably still the biggest and best examples of "pure" Electron apps, and they both work just fine. But neither of them work better than just opening Slack or Discord in a Chrome tab, and Spotify does.

1

u/altano May 07 '19

C# components? I don’t think that’s correct. Can you say more?