2021 could well be the year of the server's glorious return.
React@reactjsAs 2020 comes to an end we wanted to share a special Holiday Update on our research into zero-bundle-size React Server Components. The demo is available now whether you want to play with it during the holiday, or when work picks back up in the new year. reactjs.org/server-compone…17:24 PM - 21 Dec 2020
The approaches are very different, but both tools seem to be about:
- doing more on the server
- dealing in plain old HMTL whenever we can
The past few years of web development have been about shifting as much as possible off the server.
This is arguably a faster, more secure way of doing things, but it does have downsides.
Doing everything statically can add complexity, and shifting the burden of work from our servers to the user's browser makes it harder to progresssively enhance our apps: we're beholden to the speed of the user's connection and hardware.
Gary Bernhardt@garybernhardtConsulting service: Your 25-person company is drowning in complexity with microservice architectures, serverless, and SSR. I say "your app will fit on two Heroku Standard 1x dynos and one Standard 0 database. $150/mo total. Eat the 100 ms of extra latency." You pay me $10,000.20:14 PM - 30 Dec 2020
Client-rendered single page apps still have accessibility issues that are hard to solve.
After a few years of this, it looks like the pendulum is now swinging back in the other direction.
Maybe the server is good for some things after all!
React's server components are a carefully-considered redo of what Next.js does now with
With Next.js today, you can only do server-side operations on top level "page" components. This would remove that limitation.
Meanwhile, Basecamp's Hotwire is an evolution of the Turbolinks library that comes standard with all new Rails apps.
It seems intended to be a Rails companion, though I expect there's a way to use it seperately.
Probably not quite yet!
React's server components are a way off yet—all we can do is experiment with the demo.
While Hotwire is apparently production-ready, it'll take a little while for examples, documentation and patterns to get good enough for me to consider using it, at least.
Everyone seems to love Facebook's server components, though there's a lot of unanswered questions.
🎄 Mark Dalgleish 🎄With Server Components, React has gone from a client-side library that can render on the server to a server-side library that can render on the client.06:48 AM - 27 Dec 2020
People seem more confused about Hotwire. Maybe it's a sense of humour thing?
Either way, I'm keen to see where this goes.
Exciting times ahead!