News for hackers. Stuff that matters.
Re:New React docs pretend SPAs don't exist anymore by meotimdihia on Sunday March 19, 2023 @11:38AM (#35220064)
I have 8 years of PHP experience. Let me explain to you. While you can build a static website with Apache Struts or PHP, you must add javascript if you want to build complex sites anyway, for example: Facebook, Twitter, Tiktok,... In the past, everyone used jQuery, but jQuery and ajax can't build complex sites. You will end up with too many Ajax + dynamic elements + bad practices and can't maintain them if you use jQuery.

Finally, you'll end up using React for easy to maintain. And you'll have to wait to load React + related packages => it is slow for initial render => and SSR solved the problem.

Also, you just need a single team to build a complex application while using React instead of backend + frontend as traditionally.

Re:New React docs pretend SPAs don't exist anymore by psnehanshu on Monday March 20, 2023 @03:14PM (#35237060)
+1 for this. There are a lot of uninformed detached-from-reality people lying around here that think Next.js and friends are just reinventing PHP. I will reply them with the link to this comment.