Live data from Hacker News

MS Teams Switches from AngularJS to React, Ditches Electron.

twitter.com

41–50 of 73 posts

Re: MS Teams Switches from AngularJS to React, Ditches Electron.

#41

The linked tweet says that they're switching away from Angular, not AngularJS. These are two entirely different frameworks. https://en.wikipedia.org/wiki/Angular_(web_framework)#Differ...

This tweet clarifies it. They're switching from old AngularJs https://mobile.twitter.com/rishmsft/status/14081866792952872...

This. Looks like they were on the old angular so some switching costs were already baked in to their decision making.

Re: MS Teams Switches from AngularJS to React, Ditches Electron.

#42
post #6

Wonder why WebView2 would be any better than Electron? They are both Chromium based and if kept ups to date should be almost identical, would it just be saving disk space and sharing some memory since it would be using a single install of the browser engine?

I played with WebView2; while possible to save some disk space, the memory is (surprisingly) worse than Electron, and the API surface is also not as rich.

I like the idea of using a (system-deployed) WebView in general, but this implementation needs more work.

Re: MS Teams Switches from AngularJS to React, Ditches Electron.

#44

"Ditching Electron" is a clickbait - it doesn't go native, just switches to their own clone which seems very reasonable to me as long as they are capable and willing of maintaining it. Switching from Angular to React seems weird. What for? AFAIK the only way React is better is there are more developers familiar with it. I wonder if they considered switching to PHP instead /s

If it's React Native they could eventually move to RN for Windows which is close to native windows.

Re: MS Teams Switches from AngularJS to React, Ditches Electron.

#45
post #20

Earlier quoted context omitted.

Keeping up the latest electron is f@$king impossible. It takes months/years to get all clients updated. By then you are already running on an outdated version.

Is integrating auto-update functionality not standard part of distributed application tooling by now ?

Sure, if the user has proper permissions.

But when you are a small app running on a corporate citrix, APP-V, or whatever locked-down environment you are out of luck.

You will be able to update the app running inside electron without much of an issue. But you won't be able to download and execute a new exe.

Re: MS Teams Switches from AngularJS to React, Ditches Electron.

#46
post #19
post #6

Wonder why WebView2 would be any better than Electron? They are both Chromium based and if kept ups to date should be almost identical, would it just be saving disk space and sharing some memory since it would be using a single install of the browser engine?

I'm using WebView2 on a project at the moment, inside a WPF (dotnet core) app. One thing I've been having some fun with is the ability to host a REST dotnet core API inside the same application and then calling Javascript functions/updating the UI on an HTTP request. It's very handy if you have multiple applications on the same machine (or the same application on multiple machines on a LAN) and you want them to talk…

Intrigued by this approach!

Is the source shareable?

We have an enterprise app that was originally built as a UWP application via Xamarin.Forms (Hot mess, I know. But the decision predates me).

We've been prototyping a rebuild in React and Electron but if we could port into WebView2 and reuse a lot of our existing business logic with a port into a local api layer a lot of time could be saved.

I'm a web guy, so not sure how the nuts&bolts of this would work. Does the WPF app bootstrap a REST API on localhost on startup that is callable?

Re: MS Teams Switches from AngularJS to React, Ditches Electron.

#47
post #19

Earlier quoted context omitted.

I'm using WebView2 on a project at the moment, inside a WPF (dotnet core) app. One thing I've been having some fun with is the ability to host a REST dotnet core API inside the same application and then calling Javascript functions/updating the UI on an HTTP request. It's very handy if you have multiple applications on the same machine (or the same application on multiple machines on a LAN) and you want them to talk…

Intrigued by this approach! Is the source shareable? We have an enterprise app that was originally built as a UWP application via Xamarin.Forms (Hot mess, I know. But the decision predates me). We've been prototyping a rebuild in React and Electron but if we could port into WebView2 and reuse a lot of our existing business logic with a port into a local api layer a lot of time could be saved. I'm a web guy, so not su…

I'll fire a POC onto Github and edit this comment with the link...

Edit: Here you go - https://github.com/jmkni/HnPocWebview2

Re: MS Teams Switches from AngularJS to React, Ditches Electron.

#49

Like many in that thread, I'm wondering how WebView2 will work on Linux or Mac. Will it be a PWA or will they build a native shell around native web views for each platform?

Apparently, Microsoft is looking to port WebView2 to both macOS and Linux:

https://github.com/MicrosoftEdge/WebView2Feedback/issues/131... https://github.com/MicrosoftEdge/WebView2Feedback/issues/645

Re: MS Teams Switches from AngularJS to React, Ditches Electron.

#50
I noticed in the Powertoys devdocs[1] it mentions the settings[2] uses React. This looks to be for the settings. Windows 11 had some multi-tasking changes which look very similar to Fancy Zones and I wouldn't be surprised if they are using React in Windows 11 itself.

I assume they are probably using React Native through their FluentUI[3]. Would be curious if anyone knows more info on it.

[1] https://github.com/microsoft/PowerToys/tree/fa92f2e581e8c74c...

[2] https://github.com/microsoft/PowerToys/tree/fa92f2e581e8c74c...

[3] https://developer.microsoft.com/en-us/fluentui#/get-started/...

Post reply on HN