Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

there are already de facto two Reacts. by 2060, there will be five.


Two Reacts!?


The main divide now is client side React versus Server Components usually with a node.js backend


As someone who doesn't use React, there is React Native (for iOS & Android), and React (and that can be server-rendered or client-rendered).


There's also React Native Web


I'm sorry what


I find it is a good idea, it allows developers to cleanly define how to structure elements without random divs sneaking in.

It requires a strong design system and it probably makes it harder to use some web APIs but those can be reasonable tradeoffs


Speaking of which, is there a Tailwind CSS equivalent for React Native? I find passing `style` objects around (ala CSS Modules) to be a pain after using Tailwind for so long in web projects.

EDIT: Found one that's going v5 soon, looks nice. https://www.nativewind.dev/


In case you want to use React to make Web sites as well.


They should make a version of that runs as an app on a phone


They have one, it's called React Native Web Native


Twitter is built in React Native Web


There was also react vr


class components & function components.


That is the least interesting divide in the react community




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: