Earlier quoted context omitted.
Fwiw I've been using react on the frontend and php on the backend for like 8 years now. It's a multi page app. It's fast. No issues. If you want to swap php for go it'd be just as easy.
Interesting. How do "break down" react to be multipage. With next atleast the folder based layout (and the [id] naming convention) I found helpful. Disclaimer I'm still a react noob.
Is React Having an Angular.js Moment?
91–97 of 97 posts
Re: Is React Having an Angular.js Moment?
#92Re: Is React Having an Angular.js Moment?
#93Tldr, React is overcomplicating things like Angular did
Re: Is React Having an Angular.js Moment?
#94Earlier quoted context omitted.
This is a heavily outdated opinion. The "default" react experience nowadays is Next.js and that is definitely a framework not a library.
React is a component library. Angular.js is a framework. Next.js is also a framework. Comparing apples to apples, then you should compare Angular.js to Next.js, and not React.
Next.js is a framework.
Angular is both a component library AND a framework.
Re: Is React Having an Angular.js Moment?
#95I tend to agree with the article. I've felt pretty frustrated with the direction of react in the last few years. Most of the companies I've worked for that used react did so because they wanted a SPA, in most cases making a conscious decision to move away from older SSR technologies towards the SPA. It's doubly frustrating because we primarily use C# and Asp.Net Core for back end work. A react SPA is trivial to use w…
What's wrong with a JS back end? Node/Express is awesome.
Seriously, express in 2023 smh.
Re: Is React Having an Angular.js Moment?
#96Earlier quoted context omitted.
If you think that way, you are not objectively weighing the benefits of server side rendering. It _is_ useful and shouldn't be tossed away for the benefits of a 6MB javascript blob.
You can do better than a 6MB blob. You can code split and cache. It's not that bad. Especially if it's an app, not an SEO site.
Re: Is React Having an Angular.js Moment?
#97Earlier quoted context omitted.
You can do better than a 6MB blob. You can code split and cache. It's not that bad. Especially if it's an app, not an SEO site.
A 6MB blob is identical to 2MB, 1MB and 3MB blobs.
1. They can potentially be downloaded and parsed in parallel
2. They can be invalidated independently, meaning on your next visit you may only need to re-DL the 1MB blob instead of the whole thing
3. Not every page will need all 3 blobs, you might only need the 2MB blob to load the homepage which means it'll load a little bit quicker. Then you can either load the next blob on the next click, or start downloading it in the background so the next click is nearly instant
4. You can do this not just between pages, but progressively within a single page. Render part of the UI, wait for the 2nd blob, then render the components that need that bit.