Live data from Hacker News

ReactXP – A library for building cross-platform apps

microsoft.github.io

101–110 of 124 posts

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

#102
post #92
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.

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 understand what you're trying to argue about. If you don't like it, don't use it.

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

#104
post #90
post #88

Earlier quoted context omitted.

Skype preview in win10?

No, latest version for Win7.

ah, yeah that hasn't changed. I've been using Skype preview on Win10 and it's very nice. It's very much a native desktop app - certainly it's the successor to the old Delphi client.

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

#105
I'm a bit skeptical this is needed at all. I would've much preferred if Microsoft contributed to the already popular React Native for Web [1].

React Native already supports iOS, Android, and UWP. To add browser support all you need is something like React Native for Web. I made a small presentation a few months ago that shows this. Here's the source code: [2]. Take a look at the web folder.

Libraries like React Navigation [3] have also been built to support any platform that runs React code. It looks like Microsoft built yet another navigation library [4].

Also, check out React Primitives [5]. It aims to define a set of primitives that work on any platform that can be used to build more complex components. This is highly experimental, but I'm liking the direction where it's going, a unified React interface for any platform.

In addition, ReactVR is a great example of how React Native primitives can be extended to new emerging platforms [6].

Finally, React Native for macOS [7] answers the question that many have here about building native apps for macOS without relying on Electron.

[1] https://github.com/necolas/react-native-web

[2] https://github.com/migueloller/HelloWorldApp

[3] https://github.com/react-community/react-navigation

[4] https://microsoft.github.io/reactxp/docs/components/navigato...

[5] https://github.com/lelandrichardson/react-primitives

[6] https://github.com/facebook/react-vr

[7] https://github.com/ptmt/react-native-macos

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

#106
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

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

#107
post #46

I really want React for desktop apps. Currently we are running into some performance issues with large datasets and spreadsheets, and being able to offer a performant desktop app would be ideal. Right now we're considering using .NET and ReoGrid, since Qt is too expensive and we only target Windows anyways.

Take a look at React Native for macOS [1].

[1] https://github.com/ptmt/react-native-macos

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

#108
post #19

I'm missing something. How is this different to react native, which is already supported on ios, android, web and UWP?

How do you use React Native on the web?

You can use React Native for Web [1].

[1] https://github.com/necolas/react-native-web

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

#110
post #61

So Microsoft now have -2- cross-platform application-frameworks they offer: - Xamarin with .NET. Mobile apps only. - ReactXP. Which also supports regular web-applications It will be interesting to see if these two end up competing, or if one will be ditched in favour of the other.

AS a C# programmer, I hope MS can be more focused on Xamarin. Have tried react kind of staff, just can't get into javascript.

As a previous c# programmer, the language is pretty powerful now, it has things now that can make c# look poor in some aspects, but, you get there only through a setup. If you have tried JS with node being installed, npm, webpack, babel and all this stuff, the experience will be poor. Though with these things in check, there's nothing that will pull me back.
Post reply on HN