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

It sounds like the author is complaining more about SPAs than the React itself.

Indeed, if your needs are more static, a SPA is probably not a good solution. But if you really do need a SPA, React is a sensible choice and can perform well assuming good engineering.



Nobody needs an SPA, it’s a stylistic choice, not a need.


Ugh, that's just the fundamentalistic, non-engineering approach that we need less of.

Everything is a trade-off, and SPAs offer a trade-off that is right for some cases and wrong for others.


I disagree that SPAs are the only solution to some problems. This is an orthodoxy which people buy into but there are always a few different approaches possible. What do SPAs actually offer which is unique?

There are multiple possible solutions to most problems, including gmail or google maps for example. Just because you want to load code and data dynamically doesn’t mean you need to buy into SPAs (the followers of which I’d argue are far more fundamentalist in insisting you can only use SPAs).


> I disagree that SPAs are the only solution to some problems.

I disagree with that too. Did I ever say otherwise?

I do believe, however, that there are problems for which a SPA offers the best trade-off. Not the only solution, but the best trade-off.

> This is an orthodoxy which people buy into but there are always a few different approaches possible.

Like the orthodoxy that "nobody needs an SPA"?

> What do SPAs actually offer which is unique?

Interactivity. Good luck keeping your focus or scroll position while reloading a page. If done carefully, performance can also be on that list, though I agree it is often not done carefully.

> Just because you want to load code and data dynamically doesn’t mean you need to buy into SPAs

Agreed. Though you can load both code and data dynamically from a SPA, if you need.

Perhaps our definitions of a "SPA" differ? SPA is when you don't do reloads, hence "single page". But there are many ways to do that, some of them involving React.


I think we mostly agree, I meant people choose it - they don’t need to do things that way.




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

Search: