Over the years, my internet has gotten exponentially faster, my computers are incredibly powerful, and the entire web is now elastic, scaling on demand. Yet websites keep getting slower. SPAs are sluggish and overcomplicated for many use cases. We should stop using them as the default go-to for everything we build.
SPAs are slow and overcomplicated for many use cases. We should stop using them as the default go-to for everything we build.
Seems like all the most experienced developers I know avoid #ReactJs. Not because React is bad, per se, but because every React project we've ever encountered seems to over-complicate everything. It's usually a #singlePageApp #SPA for no good reason. Almost always too many components, too many unnecessary layers of abstraction, too many files involved in a simple change, too much code duplication, etc. I wonder why those correlate so strongly with React.
Metaframeworks exist to handle dynamic server-side rendering for cases like this (I think they call it "hydration"), but due to some rather specific technical goals for this project, I can't mix client and server logic like that.
Short of a build phase to auto-generate a stub of the initial client-rendered page, copy-pasta for me!
#spa #singlepageapp #webdev #copypaste #copypasta