Live data from Hacker News

MS Teams Switches from AngularJS to React, Ditches Electron.

twitter.com

21–30 of 73 posts

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

#21

Interesting that they didn't go with Blazor.

WebAssembly (and by extension Blazor) is for people who want to keep writing in their preferred (non-Javascript) language, but have to target the web.

Electron/Webview2 is for people who want to keep writing Javascript, but have to target the desktop.

The two tools are for opposite groups of people.

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

#22

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...

https://twitter.com/rishmsft/status/1408186679295287296

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

#23

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...

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

#25

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...

"AngularJS" is more commonly specified as "Angular 1" these days. Without specifying 1 it usually means the latest version of "Angular" which started with only 2+

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

#26
post #11

"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

Skimming through the Tweets, it seems like the rest of the online Office suite uses React and Teams was the outlier using Angular. Somehow it makes sense to use the same framework for everything and save resources.

So now we know that react will never die! Somewhere in Office 2047 will be some code from it I’m sure!

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

#27
post #4

It is still powered by a browser engine, so will this really make a difference?

More control, Edge ( also chromium based yes) gives them more control to fine tune performance better than Electron perhaps, or they are able to fix bugs/ add features to Edge WebView2 easier than with Electron.

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

#28
post #13
post #5

I hope this also takes care of the battery life issue. Teams video meetings will take my 8 hour battery life, and suck it all down in under an hour. Zoom would not even put a dent in my battery any more than me doing my regular work.

This. Also, my Teams is _really_ slow. When I, during a video meeting, decide to paste my clipboard into the chat to share an URI, it takes upwards of 10 seconds from when I first push the chat button to it having loaded, and having loaded the input field to having sent the message. It is the same when loading a chat with a new person. It is just _slow_. Thankfully it is weekend now, so I have two full days before re…

Not forgetting to mention Teams is a memory guzzler

Just boot it up and puff, 500MB gone into oblivion

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

#29
post #5

I hope this also takes care of the battery life issue. Teams video meetings will take my 8 hour battery life, and suck it all down in under an hour. Zoom would not even put a dent in my battery any more than me doing my regular work.

I doubt the UI framework has much to say about video chat performance

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

#30
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…

> I couldn't find a way to build a normal Windows installer with Electron (if there is please let me know)

https://www.electronforge.io/config/makers

- WiX MSI

- Squirrel.Windows

Are your options here. I had more luck with Squirrel than WiX.

With auto-update support.

Post reply on HN