Live data from Hacker News

ReactXP – A library for building cross-platform apps

microsoft.github.io

111–120 of 124 posts

Re: ReactXP – A library for building cross-platform apps

#111

I would really love if MS brought out some kind of .net core electron alternative. Xaml is nice enough to build UI with, .net core works across macOS and Linux, and the whole package wouldn't need an entire copy of chromium for each install

React-native is different from electron apps, though. I don't think they need chromium, just the Javascript portion of it.

XAML is an abandoned platform. I've been with WPF for maybe 8 years. Haven't enjoyed coding like i do now. If you have ever worked with React, it will change you. It is something else to be able to make a UI with ease, to be absolutely confident about state, and to tap into the biggest community on earth (npm) to import whatever you want. Also tooling, the ability to edit modules live while the rest of the application just stays put.

Re: ReactXP – A library for building cross-platform apps

#112
post #14

Despite explaining that XP stands for "cross platform", I still think that this is mis-named and many will assume it relates to one of Microsoft's biggest ever brand names with global recognition. At first glance I decided not to read the article because I thought it irrelevant due to the XP.

ReactXP: optimized performance for Windows XP running on an Athlon XP with a Titan Xp. :D

How many XP do you need to be proficient with this pattern? Really hope it's not a grind-fest.

Re: ReactXP – A library for building cross-platform apps

#113
post #20

Am I the only one who thinks this is a big deal? This basically means you can finally share your React code across platforms. It has always felt off that React and React Native are so similar, yet you can't use the same code for web and apps.

This has been possible for a while now. See my comment here: [1] [1] https://news.ycombinator.com/item?id=14068400

That's really cool. I had no idea. Thanks!

Re: ReactXP – A library for building cross-platform apps

#114

I would really love if MS brought out some kind of .net core electron alternative. Xaml is nice enough to build UI with, .net core works across macOS and Linux, and the whole package wouldn't need an entire copy of chromium for each install

React-native is different from electron apps, though. I don't think they need chromium, just the Javascript portion of it. XAML is an abandoned platform. I've been with WPF for maybe 8 years. Haven't enjoyed coding like i do now. If you have ever worked with React, it will change you. It is something else to be able to make a UI with ease, to be absolutely confident about state, and to tap into the biggest community…

I've heard react native is not very performant because it essentially operates through a webview?

Re: ReactXP – A library for building cross-platform apps

#115

Earlier quoted context omitted.

React-native is different from electron apps, though. I don't think they need chromium, just the Javascript portion of it. XAML is an abandoned platform. I've been with WPF for maybe 8 years. Haven't enjoyed coding like i do now. If you have ever worked with React, it will change you. It is something else to be able to make a UI with ease, to be absolutely confident about state, and to tap into the biggest community…

I've heard react native is not very performant because it essentially operates through a webview?

No... :D Why would anyone use it then, you could just as well wrap a regular webview. RN's gui elements are native, it taps into native animations, schedulers, openGL and so on. But driven by Javascript running in a separate thread. RN produces real mobile apps, RN-windows real UWP applications, RN-macos real mac apps, and so on.

Re: ReactXP – A library for building cross-platform apps

#116
post #14

Despite explaining that XP stands for "cross platform", I still think that this is mis-named and many will assume it relates to one of Microsoft's biggest ever brand names with global recognition. At first glance I decided not to read the article because I thought it irrelevant due to the XP.

Just like Visual Studio Code :)

Re: ReactXP – A library for building cross-platform apps

#117
post #102
post #92

Earlier quoted context omitted.

Like Java? Or QT? React Native being different for different platforms was kind of the point. "Learn once, write anywhere." This meant they could focus on wrapping the features of each unique platform without having to worry about how that affects supporting all of them simultaneously. Otherwise you get the lowest-common-denominator effect of supporting only the available APIs common between all platforms. And all of…

It fits some kind of apps. I've built one React Native app where the "lowest-common-denominator" was more than good enough (no special code for different platforms) and would have worked just as well as a web app but wasn't possible due to the nature of React/React Native. If I would have used ReactXP I could have published it on the web as well and used just one React code base so this is good news for me. I don't u…

> I don't understand what you're trying to argue about. If you don't like it, don't use it.

I'm not arguing for or against ReactXP. Although if others start pushing the default to using ReactXP over React/React Native, that will be a disappointing repeat of history. My comment was addressing your statement:

> It has always felt off that React and React Native are so similar, yet you can't use the same code for web and apps.

Re: ReactXP – A library for building cross-platform apps

#118
post #94
post #86

Earlier quoted context omitted.

I have same feelings for js in general, but I suggest you to try React Native. Just follow their official docs/tutorial. I was pleasantly surprised how straightforward it is. I believe you can as well use TypeScript.

I don't see a value for TypeScript outside the browser when I can use C# and F# instead of it. As for ReactNative, give it two or three years and maybe then I will bother learning it. As an old dog I have already seen too many carriages pass by, very few of them come back.

You should bother with React Native. It game changer in the mobile world, not a trendy thing that will pass away. Senior iOS devs are going the RN route. Companies all over the places use it for their mobile clients. A little company named WIX recreated its entire mobile front with React Native.

https://www.youtube.com/watch?v=abSNo2P9mMM

Re: ReactXP – A library for building cross-platform apps

#119
post #52
post #14

Despite explaining that XP stands for "cross platform", I still think that this is mis-named and many will assume it relates to one of Microsoft's biggest ever brand names with global recognition. At first glance I decided not to read the article because I thought it irrelevant due to the XP.

> I still think that this is mis-named and many will assume it relates to one of Microsoft's biggest ever brand names with global recognition. Don't worry, most of the target audience of devs wasn't even 10 when Windows XP was a thing that mattered...

End of Support for Windows XP was 2014, and still had a large home/enterprise install base at that time.

Re: ReactXP – A library for building cross-platform apps

#120

Earlier quoted context omitted.

React-native is different from electron apps, though. I don't think they need chromium, just the Javascript portion of it. XAML is an abandoned platform. I've been with WPF for maybe 8 years. Haven't enjoyed coding like i do now. If you have ever worked with React, it will change you. It is something else to be able to make a UI with ease, to be absolutely confident about state, and to tap into the biggest community…

I've heard react native is not very performant because it essentially operates through a webview?

You heard the opposite of reality. Here are the key facts:

- React Native is faster than apps using a webview because it uses native UI components for their OS targets (e.g. Android and iOS). They also look more native.

- React Native runs the JS code in a separate thread from the native UI components rendering. Webview apps will use the same thread for their app code and the DOM rendering.

Post reply on HN