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

React is a bad idea imo. I see small teams do way better with plain old HTML augmented with minimal Javascript. React itself is huge to download and slower to execute. I can't believe we're still stuck in React world.


React's core concept was excellent. It solved many of the issues with previous view libraries. What React turned into over the years is problematic, accumulating bad design decisions until it became the monster that it is.

The way React Native works is an example of how good the original React concept still is. It has nothing to do with HTML, it's made of cross-platform view components. It has similar ergonomics as the web version, like one-way data flow, immediate-mode rendering, view as function of state.

It's true that React has passed its peak usefulness (relative to the problems it brings), in a long tail of decline for the next decade. Newer better view libraries are being created and adopted by the community. Some of them will eventually overtake React as the next standard tool. But they all learned from React's lessons, because it really did push forward the evolution of web development.


While you might be right.

It seems like you didn't notice this was about React Native, the cross platform mobile app framework.

So "just write plain html" isn't a valid alternative unless you want to write a Progressive Web App instead. Which means you:

- Forego the App Store and need to ask users to bookmark your website

- Loose ease of access to device features (cameras, sensors, push notifications)


Ruby on Rails' Hotwire Native is basically augmented "plain HTML", and requires practically zero effort for Android and iPhone support.


How genuine are you being here? Because I've tried doing native apps using LiveView Native and it is ROUGH. The reason I ask is because I would consider using Hotwire Native for a future project if it really is good.


I think the devil is in the details. There are some recent Rails conference talks on YouTube about adding "native" support.

https://youtube.com/watch?v=VbMt_4STWIo

As the other commenter said, it may not be as "native" as you'd like.

I remember using the Hey app and being amazed at how well it worked (and this wasn't Hotwire Native at the time, I think) and I'm kind of sensitive to mobile apps not working as expected.

I don't know anything about React Native aside from my dislike for the complexity of React and how it perverts web operability, not to mention it is epically overkill for most use cases.


Yeah but the UI is webviews. It's not as native as React Native.


You likely mean "small projects". No way you see teams do better with plain old HTML + minimal JS on anything of substantial complexity. It was hell to organize code for a web app without a framework using nothing or jQuery.


When I use React / Next.js on Web projects, is not because I personaly like them, but because I have been part of projects using SaaS products whose SDKs are only available alongside those stacks.


Its easy to say now, if react creators knew everything that we know they would've made different choices, but at its time it was a breakthrough compared to other approaches.


I don't really see that, aside from the 1 to 2 jump, angular has been very steady and stable in their approach and and upgrades.




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

Search: