3 ms·
> It has enough developer momentum behind it and it’s unlike react native a bolt on solution to somehow make it work. I see React as a web-first framework, and
by h0l0cube 7y ago
> It has enough developer momentum behind it and it’s unlike react native a bolt on solution to somehow make it work.
I see React as a web-first framework, and RN as a fast path for porting to mobile. I've heard that flutter has early stage web support, but that it's all based on canvas, which is enough to dissuade me for using it for a web-first app. I'd be curious to know your perspective on this.
- realusername 7y agoNot the OP but React-native support for the web is also very early stage, I don't think I would use either for building a web platform.
- h0l0cube 7y agoIt's not something I've attempted yet, but I'm under the impression that a React -> React Native port is easier than building a Flutter app for Mobile, and then doing something else for web. Might be wrong?
- realusername 7y agoWith React Native you would also have to rewrite your components, it's unlikely your average React component would work without web dom & css.
- h0l0cube 7y agoThat's stating the obvious. Of course the UI would need re-implementation. Just like in Flutter, you might have a different UI for Cupertino and Android flavours, except with React, you'd have generic UI for mobile in RN (for better or worse), and your dom/css for React. You would be able to re-use much of the javascript logic and have .tsx as the consistent language throughout the code base. Ideally...
- tomduncalf 7y agoThis isn’t quite accurate, it’s mature enough for Twitter to use it for their new site for example (and to hire the creator of react-native-web): https://twitter.com/necolas/status/913877194199359488?s=21 https://twitter.com/necolas/status/913877194199359488?s=21
- realusername 7y agoI'm quite surprised by that, I've tried myself react-native-web and found it a bit limited. Maybe it has improved since then.