Live data from Hacker News

Twitter.com's HTML, which is produced by React Native for Web, explained

giuseppegurgone.com

1–10 of 163 posts

Re: Twitter.com's HTML, which is produced by React Native for Web, explained

#4
post #2

??? This page is just an animation, and has nothing to do with "Twitter.com's HTML, which is produced by React Native for Web, explained"

Apparently is has a screensaver if you don't interact with the page after a certain amount of time.

Re: Twitter.com's HTML, which is produced by React Native for Web, explained

#6
post #3

So pardon my ignorance but I thought React was already for web and React Native merely a set of tools to help port React web apps to native mobile apps. What is the difference between React for web and React Native for web?

React Native for web allows you to use the same primitives (View, Text, Image, Button) across platforms (web/iOS/Android/etc)

Re: Twitter.com's HTML, which is produced by React Native for Web, explained

#7
post #3

So pardon my ignorance but I thought React was already for web and React Native merely a set of tools to help port React web apps to native mobile apps. What is the difference between React for web and React Native for web?

React Native for web is, as the name implies, React Native components used for building websites. The idea is that you can share code between your native apps and your web app.

Re: Twitter.com's HTML, which is produced by React Native for Web, explained

#8
I've been searching a stack which could allow for a single codebase to be rendered in Android, iOS, and the web, and React Native + React Native Web might be the top choice for that. Other competitor includes Flutter, which used to only render canvas on the web, but right now it seems they have an option to render as HTML as well.

I bet the need for cross-platform stack might continue to rise in the future. It's just impossible for small team/solo founder to target 3 different platforms, while handling three different codebases.

Re: Twitter.com's HTML, which is produced by React Native for Web, explained

#10
post #8

I've been searching a stack which could allow for a single codebase to be rendered in Android, iOS, and the web, and React Native + React Native Web might be the top choice for that. Other competitor includes Flutter, which used to only render canvas on the web, but right now it seems they have an option to render as HTML as well. I bet the need for cross-platform stack might continue to rise in the future. It's just…

I've recently been playing with flutter and I like it more than react-native. React-native feels kind of a hack job, and the resulting program isn't really that well optimized (both performance and size wise). Flutter seems like more thought out solution where react-native was afterthought for react. Both are very productive environments however.
Post reply on HN